30 lines
673 B
YAML
30 lines
673 B
YAML
{{ if (index .Values "secrets").enabled -}}
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: {{ .Release.Name }}-secrets
|
|
namespace: argocd
|
|
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:
|
|
automated: {}
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
retry:
|
|
limit: 10
|
|
backoff:
|
|
duration: 5s
|
|
factor: 2
|
|
maxDuration: 3m0s
|
|
{{- end }}
|