Skip to content

Commit

Permalink
Staging 0.35.2 (#2042)
Browse files Browse the repository at this point in the history
Co-authored-by: Cristi <[email protected]>
  • Loading branch information
lucianvlad and crssnd authored Mar 14, 2024
1 parent ec09a4f commit 4285402
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helmfile/values/velero-sc.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ kubectl:
runAsGroup: 10000
runAsUser: 10000

# This job upgrades the CRDs.
upgradeCRDs: false

# Run velero-restore-helper init container with numeric UID and GID.
configMaps:
restore-helper-config:
Expand Down
3 changes: 3 additions & 0 deletions helmfile/values/velero-wc.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ kubectl:
runAsGroup: 10000
runAsUser: 10000

# This job upgrades the CRDs.
upgradeCRDs: false

# Run velero-restore-helper init container with numeric UID and GID.
configMaps:
restore-helper-config:
Expand Down
6 changes: 6 additions & 0 deletions migration/v0.35/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ As with all scripts in this repository `CK8S_CONFIG_PATH` is expected to be set.
./migration/v0.35/apply/50-harbor.sh execute
```

1. Upgrade Velero

```bash
./migration/v0.35/apply/60-velero-crds-upgrade.sh execute
```

1. Upgrade applications:

```bash
Expand Down
33 changes: 33 additions & 0 deletions migration/v0.35/apply/60-velero-crds-upgrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

ROOT="$(readlink -f "$(dirname "${0}")/../../../")"

# shellcheck source=scripts/migration/lib.sh
source "${ROOT}/scripts/migration/lib.sh"

run() {
case "${1:-}" in
execute)
if [[ "${CK8S_CLUSTER}" =~ ^(sc|both)$ ]]; then
log_info " - applying the Velero CRDs on sc"
kubectl_do sc apply --server-side --force-conflicts -f "${ROOT}"/helmfile/upstream/vmware-tanzu/velero/crds

helmfile_upgrade sc app=velero
fi
if [[ "${CK8S_CLUSTER}" =~ ^(wc|both)$ ]]; then
log_info " - applying the Velero CRDs on wc"
kubectl_do wc apply --server-side --force-conflicts -f "${ROOT}"/helmfile/upstream/vmware-tanzu/velero/crds

helmfile_upgrade wc app=velero
fi
;;
rollback)
log_warn "rollback not implemented"
;;
*)
log_fatal "usage: \"${0}\" <execute|rollback>"
;;
esac
}

run "${@}"
1 change: 1 addition & 0 deletions migration/v0.35/apply/80-apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ source "${ROOT}/scripts/migration/lib.sh"
declare -a skipped
skipped=(
"app!=trivy-operator"
"app!=velero"
)
declare -a skipped_sc
skipped_sc=(
Expand Down

0 comments on commit 4285402

Please sign in to comment.