{{- if .Values.clusterConfig.argo.enabled }} {{- range .Values.redis.envs }} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: {{ . }}-redis namespace: argocd annotations: argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true finalizers: - resources-finalizer.argocd.argoproj.io spec: destination: namespace: {{ . }}-redis server: 'https://kubernetes.default.svc' sources: - repoURL: {{ .Values.clusterConfig.manifests }} targetRevision: HEAD path: helmfiles/redis 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.redis.autosync }} automated: prune: true # selfHeal: false {{- end }} ignoreDifferences: - group: apps kind: StatefulSet jqPathExpressions: - '.spec.template.spec.containers[].resources.limits.cpu' {{- end }} {{- end }}