{{- if .Values.keycloakOperator.enable -}} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: keycloak-operator namespace: {{ .Values.argocd.namespace }} annotations: 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-operator helm: releaseName: keycloak-operator destination: server: {{ .Values.keycloakOperator.destination.server }} namespace: {{ .Values.keycloakOperator.destination.namespace }} 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 }}