Skip to content

Commit 988aeb8

Browse files
authored
Merge pull request #351 from metacoma/kcl_argocd_zombie_workaround
Use a different image for argocd plugin
2 parents f3bc4f9 + d062bde commit 988aeb8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

examples/gitops/install/patch-argocd-repo-server.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ spec:
33
spec:
44
containers:
55
- name: my-plugin
6-
command: [/var/run/argocd/argocd-cmp-server] # Entrypoint should be Argo CD lightweight CMP server i.e. argocd-cmp-server
7-
image: kcllang/kcl # This can be off-the-shelf or custom-built image
6+
command: [/tini]
7+
args:
8+
- /var/run/argocd/argocd-cmp-server
9+
# - --
10+
# - --loglevel=debug
11+
image: kcllang/kcllang-cmp-plugin
812
securityContext:
913
runAsNonRoot: true
1014
runAsUser: 999
@@ -17,7 +21,7 @@ spec:
1721
- mountPath: /home/argocd/cmp-server/config/plugin.yaml
1822
subPath: plugin.yaml
1923
name: kcl-plugin-config
20-
# Starting with v2.4, do NOT mount the same tmp volume as the repo-server container. The filesystem separation helps
24+
# Starting with v2.4, do NOT mount the same tmp volume as the repo-server container. The filesystem separation helps
2125
# mitigate path traversal attacks.
2226
- mountPath: /tmp
2327
name: cmp-tmp

0 commit comments

Comments
 (0)