From d30ec56a96726475263b270ccec3f1b2bfb9afad Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Tue, 10 Sep 2024 14:02:39 +0200 Subject: [PATCH] Remove files plugin --- cmp-plugin.yaml | 25 ++++++++++++ overlays/argocd-repo-server-patch.yaml | 53 ++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 cmp-plugin.yaml create mode 100644 overlays/argocd-repo-server-patch.yaml diff --git a/cmp-plugin.yaml b/cmp-plugin.yaml new file mode 100644 index 0000000..1a7ca93 --- /dev/null +++ b/cmp-plugin.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: cmp-plugin +data: + avp.yaml: | + apiVersion: argoproj.io/v1alpha1 + kind: ConfigManagementPlugin + metadata: + name: argocd-vault-plugin + spec: + allowConcurrency: true + discover: + find: + command: + - sh + - "-c" + - "find . -name '*.yaml' | xargs -I {} grep \"- + 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/ + volumeMounts: + - mountPath: /custom-tools + name: custom-tools + containers: + - name: avp + command: [/var/run/argocd/argocd-cmp-server] + image: registry.access.redhat.com/ubi8 + securityContext: + runAsNonRoot: true + runAsUser: 999 + volumeMounts: + - mountPath: /var/run/argocd + name: var-files + - mountPath: /home/argocd/cmp-server/plugins + name: plugins + - mountPath: /tmp + name: tmp + + # Register plugins into sidecar + - mountPath: /home/argocd/cmp-server/config/plugin.yaml + subPath: avp.yaml + name: cmp-plugin + + # Important: Mount tools into $PATH + - name: custom-tools + subPath: argocd-vault-plugin + mountPath: /usr/local/bin/argocd-vault-plugin \ No newline at end of file