Big Bang Velero Package Maintenance Guide¶
-
Start from the Renovate branch
Checkout the branch created by Renovate. This includes updated image tags and related version changes. You can work directly on the renovate/ironbank branch.
-
Review upstream changes
Go to the upstream chart repo and identify the target chart version. Always start with the latest version to pick up recent patches. Review release notes here.
-
Update chart version and dependencies
Update
versioninChart.yaml, appending-bb.Xto the upstream version Update all dependencies inchart/Chart.yamlto match the latest upstream versions -
Update dependencies and lock file
Run: helm dependency update ./chart
-
Update changelog
Add a new entry in
CHANGELOG.mdthat includes: - Updated Velero chart version (e.g.,x.x.x) - Updated image versions (from Iron Bank or other sources) - Any additional notable changes -
Regenerate README
Follow the Gluon README guide to update
README.md. -
Validate via CI
Push your changes and ensure CI passes on the Renovate MR (or create one if needed). Address any failures using pipeline logs and coordinate with the team if necessary.
-
Perform manual testing
Run additional validation beyond CI smoke tests to ensure the package functions as expected.
Testing new Velero version¶
Cluster setup¶
Launch K3D cluster and deploy flux
Deploy Bigbang¶
⚠️ Note that testing against your local branch or tag is only possible if you edit the overrides file to point to your changes.
From the root of this repo, run the following deploy command :
helm upgrade -i bigbang ${BIGBANG_REPO_DIR}/chart/ -n bigbang --create-namespace \
--set registryCredentials.username=${REGISTRY_USERNAME} --set registryCredentials.password=${REGISTRY_PASSWORD} \
-f https://repo1.dso.mil/big-bang/bigbang/-/raw/master/tests/test-values.yaml \
-f https://repo1.dso.mil/big-bang/bigbang/-/raw/master/chart/ingress-certs.yaml \
-f docs/dev-overrides/velero-testing.yaml
Validation/Testing Steps¶
Setting up¶
- The above instructions will bring Velero up quickly, by disabling most other bigbang packages aside from Istio and the Monitoring stack. ib_creds.yaml refers to wherever your registryCredentials key is saved.
- Velero stores backups in Garage, an S3-compatible service that runs outside the cluster. Create your k3d cluster with
k3d-dev.sh --external-dependenciesso Garage is available atgarage:3900(172.30.0.11on thek3d-dependenciesnetwork) with the default test credentials. Thevelerobucket is pre-created automatically, so no manual bucket creation is needed. If the cluster already exists, select “Re-create external dependencies” from the interactive menu. - If you encounter an issue where Velero has no deployed releases, you may need to roll back any helm releases and Velero resources before redeploying.
Backing up a cluster¶
Velero can be interacted with using its pod:
% kubectl get pods -n velero
NAME READY STATUS RESTARTS AGE
velero-velero-579bd4f68-6wl4p 2/2 Running 0 3m40s
% kubectl exec -it velero-velero-579bd4f68-6wl4p -n velero -- bash
bash-5.1$ velero backup create goodbackup
bash-5.1$ velero backup create monitoringbackup --include-namespaces=monitoring
These backup files will be delivered to Garage, or whatever BackupStorageLocation was chosen. If these backups are not being placed in the Garage bucket, ensure that the velero bucket exists and that the BackupStorageLocation points at http://garage:3900 (check with velero backup-location get). You can also use velero backup describe <backupname> to troubleshoot issues. Velero Backup Documentation can help with taking more fine-grained backups, and Velero Restore Documentation can assist in restoring backups to the same or different clusters.
Big Bang Integration Testing¶
As part of your MR that modifies bigbang packages, you should modify the bigbang bigbang/tests/test-values.yaml against your branch for the CI/CD MR testing by enabling your packages.
To do this, at a minimum, you will need to follow the instructions at bigbang/docs/developer/test-package-against-bb.md with changes for Velero enabled (the below is a reference, actual changes could be more depending on what changes where made to Velero in the package MR).
```yaml
packages:
velero:
enabled: true
git:
tag: null
branch: <my-package-branch-that-needs-testing>
### Additional compononents of Velero should be changed to reflect testing changes introduced in the package MR
```
Modifications made to upstream¶
This is a high-level list of modifications that Big Bang has made to the upstream helm chart. You can use this as as cross-check to make sure that no modifications were lost during the upgrade process.
chart/values.yaml¶
- Added values for
istio,networkPolicies, andbbtests - Changed image to default to Ironbank image
- Set default
podSecurityContext,containerSecurityContext, andimagePullSecrets - Added commented out values for
serviceMonitor.schemeandserviceMonitor.tlsConfig - Added values for aws, csi, and azure under the new
pluginssection - added aws plugin initContainer
chart/templates/bigbang/¶
- Network policies added
- Istio mTLS (peerauthentication) resources added
- Grafana dashboard added
- CSI Snapshot class added