2023-04-24 00:11:14 +00:00
|
|
|
{{ if (index .Values "secrets").enabled -}}
|
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
|
|
kind: Application
|
|
|
|
metadata:
|
|
|
|
name: {{ .Release.Name }}-secrets
|
|
|
|
namespace: argocd
|
2023-04-24 00:45:56 +00:00
|
|
|
finalizers:
|
|
|
|
- resources-finalizer.argocd.argoproj.io
|
2023-04-24 00:11:14 +00:00
|
|
|
spec:
|
|
|
|
project: default
|
|
|
|
source:
|
|
|
|
path: secrets
|
|
|
|
repoURL: "{{ .Values.bootstrap.source.repoURL }}"
|
|
|
|
targetRevision: "{{ .Values.bootstrap.source.targetRevision }}"
|
|
|
|
directory:
|
|
|
|
recurse: true
|
|
|
|
include: '*.yaml'
|
|
|
|
destination:
|
|
|
|
server: "https://kubernetes.default.svc"
|
|
|
|
namespace: argocd
|
|
|
|
syncPolicy:
|
2023-04-24 00:48:46 +00:00
|
|
|
automated:
|
|
|
|
prune: true
|
|
|
|
selfHeal: true
|
2023-04-24 00:11:14 +00:00
|
|
|
syncOptions:
|
|
|
|
- CreateNamespace=true
|
|
|
|
retry:
|
|
|
|
limit: 10
|
|
|
|
backoff:
|
|
|
|
duration: 5s
|
|
|
|
factor: 2
|
|
|
|
maxDuration: 3m0s
|
|
|
|
{{- end }}
|