wip: helmfileify

This commit is contained in:
Moritz Jörg
2025-06-02 22:25:06 +02:00
committed by Moritz Jörg
parent 65d65ea126
commit a0a0f8586d
73 changed files with 1491 additions and 121 deletions
+40
View File
@@ -0,0 +1,40 @@
{{- if .Values.clusterConfig.argo.enabled }}
{{- range .Values.rabbitmq.envs }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ . }}-rabbitmq
namespace: argocd
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: {{ . }}-rabbitmq
server: 'https://kubernetes.default.svc'
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfiles/rabbitmq
plugin:
name: helmfile
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
project: aux
syncPolicy:
managedNamespaceMetadata:
labels:
component: aux
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
# - ServerSideApply=true
{{- if .Values.rabbitmq.autosync }}
automated:
prune: true
# selfHeal: false
{{- end }}
{{- end }}
{{- end }}
+2
View File
@@ -0,0 +1,2 @@
rabbitmq:
enabled: true
@@ -5,7 +5,7 @@ auth:
existingPasswordSecret: prod-rabbitmq
password: ""
username: user
clusterDomain: cluster.local
#clusterDomain: cluster.local
ingress:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
@@ -22,11 +22,10 @@ ingress:
secrets: []
selfSigned: false
tls: true
persistence:
accessModes:
- ReadWriteOnce
enabled: true
existingClaim: ""
size: 8Gi
storageClass: ""
#persistence:
# accessModes:
# - ReadWriteOnce
# enabled: true
# existingClaim: ""
# size: 8Gi
# storageClass: ""
@@ -5,7 +5,7 @@ auth:
existingPasswordSecret: staging-rabbitmq
password: ""
username: user
clusterDomain: cluster.local
#clusterDomain: cluster.local
ingress:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
@@ -28,11 +28,11 @@ ingress:
secrets: []
selfSigned: false
tls: true
persistence:
accessModes:
- ReadWriteOnce
enabled: true
existingClaim: ""
size: 8Gi
storageClass: ""
#persistence:
# accessModes:
# - ReadWriteOnce
# enabled: true
# existingClaim: ""
# size: 8Gi
# storageClass: ""
@@ -0,0 +1,8 @@
clusterDomain: cluster.local
persistence:
accessModes:
- ReadWriteOnce
enabled: true
existingClaim: ""
size: 8Gi
storageClass: ""