We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b4466c0 + 078caee commit 51fa294Copy full SHA for 51fa294
1 file changed
helm/blueapi/templates/cronjob.yaml
@@ -61,8 +61,9 @@ spec:
61
- -c
62
- |
63
# Get PVCs belonging to this blueapi release
64
- ALL_PVC=$(kubectl get pvc -l "argocd.argoproj.io/instance={{ .Release.Name }}" \
65
- -o jsonpath='{.items[*].metadata.name}' -n {{ .Release.Namespace }} | tr ' ' '\n')
+ ALL_PVC=$(kubectl get pvc -n {{ .Release.Namespace }} \
+ -o jsonpath='{.items[*].metadata.name}' | tr ' ' '\n' | \
66
+ grep "^{{ .Release.Name }}-scratch-")
67
# Get all PVCs currently mounted by running pods
68
MOUNTED_PVCS=$(kubectl get pods -n {{ .Release.Namespace }} \
69
-o=jsonpath='{.items[*].spec.volumes[*].persistentVolumeClaim.claimName}' | tr ' ' '\n' | sort -u)
0 commit comments