34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
{{- if .Values.dbCluster.enable -}}
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: {{ .Values.argocd.prefix }}keycloak-requirements
|
|
namespace: {{ .Values.argocd.namespace }}
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "-1"
|
|
notifications.argoproj.io/subscribe.on-sync-succeeded.telegram: "-1002270587578"
|
|
spec:
|
|
project: {{ .Values.argocd.project }}
|
|
source:
|
|
repoURL: "https://git.blarre.net/thomas/helm-charts.git"
|
|
targetRevision: HEAD
|
|
path: keycloak-requirements
|
|
helm:
|
|
releaseName: keycloak-requirements
|
|
valuesObject:
|
|
prefix: {{ .Values.argocd.prefix }}
|
|
dbCluster:
|
|
size: {{ .Values.dbCluster.size }}
|
|
numInstances: {{ .Values.dbCluster.numInstances }}
|
|
destination:
|
|
server: {{ .Values.mainDestination }}
|
|
namespace: {{ .Values.mainNamespace }}
|
|
syncPolicy:
|
|
automated:
|
|
prune: true # Automatically remove resources no longer in the repo
|
|
selfHeal: true # Automatically self-heal when drift is detected
|
|
syncOptions:
|
|
- ApplyOutOfSyncOnly=true
|
|
- ServerSideApply=true
|
|
- CreateNamespace=true
|
|
{{- end }} |