25 lines
594 B
YAML
25 lines
594 B
YAML
# ArgoCD CMP plugin for SOPS secret decryption
|
|||
|
|
apiVersion: v1
|
||
|
|
kind: ConfigMap
|
||
|
|
metadata:
|
||
|
|
name: argocd-cmp-cm
|
||
|
|
namespace: argocd
|
||
|
|
data:
|
||
|
|
sops-secrets-v1.0.yaml: |
|
||
|
|
apiVersion: argoproj.io/v1alpha1
|
||
|
|
kind: ConfigManagementPlugin
|
||
|
|
metadata:
|
||
|
|
name: sops-secrets-v1.0
|
||
|
|
spec:
|
||
|
|
generate:
|
||
|
|
command: [sh, -c]
|
||
|
|
args:
|
||
|
|
- |
|
||
|
|
# Find all .enc.yaml files and decrypt them
|
||
|
|
find . -name '*.enc.yaml' -type f | while read -r file; do
|
||
|
|
sops -d "$file"
|
||
|
|
done
|
||
|
|
discover:
|
||
|
|
find:
|
||
|
|
glob: "**/*.enc.yaml"
|