Skip to content

Big Bang Velero Package Maintenance Guide

  1. 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.

  2. 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.

  3. Update chart version and dependencies

    Update version in Chart.yaml, appending -bb.X to the upstream version Update all dependencies in chart/Chart.yaml to match the latest upstream versions

  4. Update dependencies and lock file

    Run: helm dependency update ./chart

  5. Update changelog

    Add a new entry in CHANGELOG.md that includes: - Updated Velero chart version (e.g., x.x.x) - Updated image versions (from Iron Bank or other sources) - Any additional notable changes

  6. Regenerate README

    Follow the Gluon README guide to update README.md.

  7. 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.

  8. 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-dependencies so Garage is available at garage:3900 (172.30.0.11 on the k3d-dependencies network) with the default test credentials. The velero bucket 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, and bbtests
  • Changed image to default to Ironbank image
  • Set default podSecurityContext, containerSecurityContext, and imagePullSecrets
  • Added commented out values for serviceMonitor.scheme and serviceMonitor.tlsConfig
  • Added values for aws, csi, and azure under the new plugins section
  • added aws plugin initContainer

chart/templates/bigbang/

  • Network policies added
  • Istio mTLS (peerauthentication) resources added
  • Grafana dashboard added
  • CSI Snapshot class added