Skip to content

Commit

Permalink
add namespace to kubectl rollout status call, just to be safe
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikBadenhop committed Aug 8, 2024
1 parent e890289 commit 39eea5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/dbp-moodle/scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if ! [ -a /mountData/moodledata/CliUpdate ]; then
kubectl get deployment/{{ .Release.Name }} -n {{ .Release.Namespace }} -o jsonpath="{.spec.template.spec.containers[0].livenessProbe}" > ${liveness_probe_file}
kubectl patch deployment/{{ .Release.Name }} -n {{ .Release.Namespace }} --type=json -p="[{'op': 'remove', 'path': '/spec/template/spec/containers/0/readinessProbe'}, {'op': 'remove', 'path': '/spec/template/spec/containers/0/livenessProbe'}]"

kubectl rollout status deployment/{{ .Release.Name }}
kubectl rollout status deployment/{{ .Release.Name }} -n {{ .Release.Namespace }}

# Wait for running jobs to finish to avoid errors
echo "=== Waiting for jobs to finish ==="
Expand Down

0 comments on commit 39eea5b

Please sign in to comment.