fix(cmp): fix plugins not having access to argocd cli for git ASKPASS (#24665)

Signed-off-by: Zach Aller <zach_aller@intuit.com>
This commit is contained in:
Zach Aller 2025-09-22 15:52:47 +02:00 committed by GitHub
parent d1f8cddad0
commit e181fbb81d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 65 additions and 55 deletions

View file

@ -301,11 +301,11 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd /var/run/argocd/argocd-cmp-server
command:
- sh
- '-c'
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -25430,11 +25430,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -25264,11 +25264,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -27065,11 +27065,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -26901,11 +26901,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -2752,11 +2752,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -2588,11 +2588,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -26095,11 +26095,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

11
manifests/install.yaml generated
View file

@ -25929,11 +25929,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -1782,11 +1782,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext:

View file

@ -1616,11 +1616,12 @@ spec:
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
initContainers:
- command:
- /bin/cp
- -n
- /usr/local/bin/argocd
- /var/run/argocd/argocd-cmp-server
- args:
- /bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd && /bin/ln -s /var/run/argocd/argocd
/var/run/argocd/argocd-cmp-server
command:
- sh
- -c
image: quay.io/argoproj/argocd:latest
name: copyutil
securityContext: