refactor(argocd): simplify secrets approach — use directory source, manual Secrets for Stage 0

Reverts complex CMP plugin setup (helm chart doesn't support repoServer.extraContainers).
Instead: sops-secrets Application uses directory source (no plugin), emits placeholder
README. Manually-created Secrets (grafana-admin) live in target namespaces.

Full CMP plugin work deferred to future stage. Grafana values still wired to
admin.existingSecret (no-op until Secret exists, which it now does).

This unblocks cluster deployment without waiting for ArgoCD CMP plumbing.
This commit is contained in:
Story Crater Bot
2026-07-20 11:49:23 -07:00
parent d282ae1aa0
commit abaea8823b
3 changed files with 7 additions and 31 deletions
+1 -2
View File
@@ -20,7 +20,6 @@ spec:
repoURL: http://forgejo.riotpiao.com:3000/riotpiao.com/homelab.git
targetRevision: main
path: k8s/security/sops-secrets
plugin: {}
directory: {}
destination:
server: https://kubernetes.default.svc
revisionHistoryLimit: 3
-29
View File
@@ -47,15 +47,6 @@ configs:
g, homelab-admins, role:admin
policy.default: role:readonly
cmp:
plugins:
sops-secrets:
generate:
command: sh
args:
- -c
- /var/run/argocd/plugins/sops-cmp-generate.sh
server:
replicas: 1
deploymentStrategy:
@@ -99,26 +90,6 @@ repoServer:
enabled: true
serviceMonitor:
enabled: true
extraContainers:
- name: sops-cmp
image: registry.gitlab.com/argoproj/argocd-helm-charts/argocd-cmp-server:v2.12.1
command: [/var/run/argocd/argocd-cmp-server]
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
- mountPath: /sops-age
name: sops-age
volumes:
- name: sops-age
secret:
secretName: sops-age
applicationSet:
replicas: 1
+6
View File
@@ -0,0 +1,6 @@
# SOPS-Decrypted Secrets
Placeholder for CMP-generated secrets (pending full CMP plugin setup).
Currently, manually-created Secrets live in individual namespaces (e.g., grafana-admin in logging/).
Once the CMP plugin is wired, this Application will decode *.enc.yaml and emit all Secrets here.