cms-deployment/k8s-bootstrap/management-plugin-patch.yml

78 lines
2.3 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-repo-server
namespace: argocd
spec:
template:
spec:
initContainers:
- name: download-copy-timoni
image: rancher/curlimages-curl:7.73.0
command: [/bin/sh]
args:
- -c
- >-
curl -sL -o /tmp/timoni.tar.gz https://github.com/stefanprodan/timoni/releases/download/v0.24.0/timoni_0.24.0_linux_$(arch | sed 's/aarch/arm/' | sed 's/x86_64/amd64/').tar.gz &&
tar -xzf /tmp/timoni.tar.gz -C /var/run/argocd/ timoni
volumeMounts:
- mountPath: /var/run/argocd
name: var-files
- name: copyutil
command: [ /bin/bash ]
args:
- -c
- >-
/bin/cp -n /usr/local/bin/helm /var/run/argocd/helm &&
/bin/cp -n /usr/local/bin/kustomize /var/run/argocd/kustomize &&
/bin/cp -n /usr/local/bin/argocd /var/run/argocd/argocd-cmp-server
volumeMounts:
- mountPath: /var/run/argocd
name: var-files
containers:
- name: timoni
image: alpine
securityContext:
runAsUser: 999
runAsNonRoot: true
imagePullPolicy: IfNotPresent
command: [/var/run/argocd/argocd-cmp-server]
volumeMounts:
- name: var-files
mountPath: /var/run/argocd
- name: plugins
mountPath: /home/argocd/cmp-server/plugins
- name: cmp-plugins
mountPath: /home/argocd/cmp-server/config/plugin.yaml
subPath: timoni.yml
- name: cmp-tmp
mountPath: /tmp
- name: kustomize-helm-enabled
image: alpine
securityContext:
runAsUser: 999
runAsNonRoot: true
imagePullPolicy: IfNotPresent
command: [/var/run/argocd/argocd-cmp-server]
volumeMounts:
- name: var-files
mountPath: /var/run/argocd
- name: plugins
mountPath: /home/argocd/cmp-server/plugins
- name: cmp-plugins
mountPath: /home/argocd/cmp-server/config/plugin.yaml
subPath: kustomize-helm-enabled.yml
- name: cmp-tmp
mountPath: /tmp
volumes:
- name: cmp-plugins
configMap:
name: argocd-custom-plugins
- name: cmp-tmp
emptyDir: {}