feat: socerer helmfile setup

This commit is contained in:
2025-06-21 18:24:46 +02:00
parent f4bde45836
commit ea83fa5e7e
37 changed files with 86 additions and 1 deletions
-1
View File
@@ -1 +0,0 @@
../../charts/sorcerer
+5
View File
@@ -0,0 +1,5 @@
sorcerer:
enabled: true
autosync: false
env: {{ .Environment.Name }}
+36
View File
@@ -0,0 +1,36 @@
{{ if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ .Values.sorcerer.env }}-sorcerer
namespace: argocd
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: {{ .Values.sorcerer.env }}-sorcerer
server: https://kubernetes.default.svc
project: sorcerer
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfile.d
plugin:
name: helmfile-cmp
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
- name: HELMFILE_ENVIRONMENT
value: {{ .Values.sorcerer.env }}
- name: HELMFILE_FILE_PATH
value: sorcerer.yaml.gotmpl
syncPolicy:
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
# automated:
# prune: true
# selfHeal: false
{{- end }}