{{ if .Values.clusterConfig.argo.enabled }} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: fornix namespace: argocd annotations: argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true argocd.argoproj.io/compare-options: ServerSideDiff=true finalizers: - resources-finalizer.argocd.argoproj.io spec: destination: namespace: fornix server: https://kubernetes.default.svc project: default 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.fornix.env }} - name: HELMFILE_FILE_PATH value: fornix.yaml.gotmpl - repoURL: https://gitlab.com/oceanbox/manifests.git targetRevision: main ref: values syncPolicy: syncOptions: - CreateNamespace=true - ApplyOutOfSyncOnly=true {{- if .Values.fornix.autosync }} automated: prune: true selfHeal: false {{- end }} {{- end }}