Skip to content

Commit

Permalink
Fix entrypoint for the upgrade hook to avoid invoking shell (NVIDIA#209)
Browse files Browse the repository at this point in the history
Signed-off-by: Shiva Krishna, Merla <[email protected]>
  • Loading branch information
shivamerla authored Nov 5, 2024
1 parent 1b728fa commit cb17d7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deployments/helm/k8s-nim-operator/templates/upgrade_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ spec:
capabilities:
drop:
- ALL
command:
- /bin/sh
- -c
- >
kubectl apply -f /opt/nim-operator/crds/*.yaml;
command: ["kubectl"]
args:
- "apply"
- "-f"
- "/opt/nim-operator/crds/*.yaml"
restartPolicy: OnFailure
{{- end }}

0 comments on commit cb17d7e

Please sign in to comment.