{{ if .Values.clusterConfig.argo.enabled }} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: {{ .Values.codex.env }}-codex 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: {{ .Values.codex.env }}-atlantis server: https://kubernetes.default.svc project: atlantis 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.codex.env }} - name: HELMFILE_FILE_PATH value: codex.yaml.gotmpl - repoURL: https://gitlab.com/oceanbox/manifests.git targetRevision: main ref: values syncPolicy: syncOptions: - CreateNamespace=true - ApplyOutOfSyncOnly=true {{- if .Values.codex.autosync }} automated: prune: true selfHeal: false {{- end }} {{- end }}