Skip to content

Commit

Permalink
Add log message
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Shah <[email protected]>
  • Loading branch information
mayankshah1607 committed Oct 30, 2024
1 parent 605d672 commit 810ee6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#
# @param .namespace The namespace where the operator is installed
# @param .version Version to upgrade to
# @param .versionMetadataURL The URL of the version metadata service
#
{{- define "everest.preUpgradeChecks" }}
Expand All @@ -24,11 +25,12 @@ spec:
- |
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
VERSION='1.2.0'
VERSION={{ .version }}
apk add --no-cache --quiet curl
curl -sSL -o everestctl https://github.com/percona/everest/releases/download/v${VERSION}/everestctl-${OS}-${ARCH}
chmod -R 777 ./everestctl


echo "Checking requirements for upgrade to version ${VERSION}"
./everestctl upgrade --dry-run --version-metadata-url={{ .versionMetadataURL }}
dnsPolicy: ClusterFirst
restartPolicy: OnFailure
Expand Down
2 changes: 1 addition & 1 deletion charts/everest/templates/hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{- if .Values.upgrade.preflightChecks }}
{{- include "everest.preUpgradeChecks" (dict "namespace" (include "everest.namespace" .) "versionMetadataURL" .Values.versionMetadataURL) }}
{{- include "everest.preUpgradeChecks" (dict "namespace" (include "everest.namespace" .) "version" .Chart.Version "versionMetadataURL" .Values.versionMetadataURL) }}
{{- end }}

0 comments on commit 810ee6b

Please sign in to comment.