Files
argocd/manifest/overlays/production/argocd-cmp-cm.yaml
T
olb042 40eb3b842c
Validate manifests / validate (push) Failing after 4s
feat: initial ArgoCD GitOps self-management setup
- Base references upstream ArgoCD v3.3.6 install.yaml
- Production overlay applies all cluster customizations:
  - KSOPS CMP sidecar on argocd-repo-server
  - Custom ConfigMaps (argocd-cm, argocd-cmd-params-cm, argocd-rbac-cm, argocd-notifications-cm)
  - Redis migrated to shared-redis.data:6379
  - Traefik IngressRoute for argocd.olb42.com
  - SOPS-encrypted secrets (age key, redis auth, gitea tokens, repo-creds)
- Bootstrap Application with prune:false for safe self-management
2026-04-19 23:36:09 +01:00

27 lines
746 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cmp-cm
namespace: argocd
data:
ksops.yaml: |
apiVersion: argoproj.io/v1alpha1
kind: ConfigManagementPlugin
metadata:
name: ksops
spec:
generate:
command: ["sh", "-c"]
args:
- |
if [ -n "$ARGOCD_ENV_BRANCH_SLUG" ]; then
sed -i "s/BRANCH_SLUG_PLACEHOLDER/$ARGOCD_ENV_BRANCH_SLUG/g" kustomization.yaml
fi
if [ -n "$ARGOCD_ENV_IMAGE_TAG" ]; then
kustomize edit set image "ngorse/swarm-dns-watcher:$ARGOCD_ENV_IMAGE_TAG"
fi
kustomize build --enable-alpha-plugins --enable-exec .
discover:
find:
glob: "**/kustomization.yaml"