Skip to content

Commit

Permalink
[patch] remove need for root access in argocd repo initContainer (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomklapiscak authored Aug 1, 2024
1 parent 00d1bad commit 28f8dd7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions image/cli/mascli/templates/gitops/bootstrap/argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1329,8 +1329,8 @@ spec:
- >-
curl -L
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v\$(AVP_VERSION)/argocd-vault-plugin_\$(AVP_VERSION)_linux_amd64
-o argocd-vault-plugin && chmod +x argocd-vault-plugin && mv
argocd-vault-plugin /custom-tools/
-o /tmp/argocd-vault-plugin && chmod +x /tmp/argocd-vault-plugin && mv
/tmp/argocd-vault-plugin /tmp/custom-tools/
command:
- sh
- '-c'
Expand All @@ -1340,10 +1340,12 @@ spec:
image: registry.access.redhat.com/ubi8
name: download-tools
securityContext:
allowPrivilegeEscalation: true
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 999
resources: {}
volumeMounts:
- mountPath: /custom-tools
- mountPath: /tmp/custom-tools
name: custom-tools
mountsatoken: true
resources:
Expand Down

0 comments on commit 28f8dd7

Please sign in to comment.