-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Cristi <[email protected]>
- Loading branch information
1 parent
ec09a4f
commit 4285402
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters