-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin-patch.yaml
61 lines (55 loc) · 2.2 KB
/
plugin-patch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-repo-server
spec:
template:
spec:
initContainers:
- name: helm-kustomize-plugin-setup
image: alpine
command:
- sh
- -c
- |
wget https://get.helm.sh/helm-v3.8.2-linux-amd64.tar.gz -O - | tar xz && mv linux-amd64/helm /tools/helm && chmod +x /tools/helm
wget https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv4.5.7/kustomize_v4.5.7_linux_amd64.tar.gz \
wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O /tools/jq && chmod +x /tools/jq
wget https://github.com/mikefarah/yq/releases/download/v4.24.5/yq_linux_amd64 -O /tools/yq && chmod +x /tools/yq
-O - | tar xz && mv kustomize /tools/ && chmod +x /tools/kustomize
volumeMounts:
- mountPath: /tools
name: helm-plugin-tools
containers:
- name: helm-kustomize-plugin
command: [ /var/run/argocd/argocd-cmp-server ]
image: alpine # Use busybox with init container or build custom docker image with required dependencies
securityContext:
runAsNonRoot: true
runAsUser: 999
volumeMounts:
- mountPath: /var/run/argocd
name: var-files
- mountPath: /home/argocd/cmp-server/plugins
name: plugins
- mountPath: /home/argocd/cmp-server/config/plugin.yaml
subPath: plugin.yaml
name: helm-kustomize-plugin-config
- mountPath: /var/run/argocd/helm-kustomize-plugin/generate.sh
subPath: generate.sh
name: helm-kustomize-plugin-config
- mountPath: /var/run/argocd/helm-kustomize-plugin/init.sh
subPath: init.sh
name: helm-kustomize-plugin-config
- mountPath: /usr/local/bin
name: helm-plugin-tools
- mountPath: /tmp
name: cmp-tmp
volumes:
- configMap:
name: helm-kustomize-plugin-config
name: helm-kustomize-plugin-config
- emptyDir: { }
name: helm-plugin-tools
- emptyDir: { }
name: cmp-tmp