We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0edfbfc commit ba366c4Copy full SHA for ba366c4
charts/gitops-runtime/templates/hooks/pre-uninstall/cleanup-resources.yaml
@@ -20,7 +20,8 @@ spec:
20
command: ["sh", "-c"]
21
args:
22
- |
23
- kubectl get applications -A -l codefresh.io/internal=true -o name | xargs -r -I{} kubectl patch {} -p '{"metadata":{"finalizers":null}}' --type=merge || true
+ kubectl get applications -n {{ .Release.Namespace }} -l codefresh.io/internal=true -o jsonpath='{.items[*].metadata.name}' \
24
+ | xargs -r -n1 -I{} kubectl patch application -n {{ .Release.Namespace }} {} -p '{"metadata":{"finalizers":null}}' --type=merge || true
25
{{- with .Values.installer.nodeSelector | default .Values.global.nodeSelector }}
26
nodeSelector: {{ toYaml . | nindent 8 }}
27
{{- end }}
0 commit comments