add cluster resources
This commit is contained in:
parent
4a7d7c6ad9
commit
02e5b307b2
33
argo1/templates/cluster-resources.yaml
Normal file
33
argo1/templates/cluster-resources.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# {{ if (index .Values "cluster-resources").enabled }}
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-cluster-resources
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
path: {{ (index .Values "cluster-resources").path | default "." | quote }}
|
||||||
|
repoURL: {{ (index .Values "cluster-resources").repoURL | quote }}
|
||||||
|
targetRevision: {{ (index .Values "cluster-resources").targetRevision | default "main" | quote}}
|
||||||
|
directory:
|
||||||
|
recurse: {{ (index .Values "cluster-resources").directory.recurse | default "true" }}
|
||||||
|
include: {{ (index .Values "cluster-resources").directory.include | default "*.yaml" | quote }}
|
||||||
|
destination:
|
||||||
|
server: "https://kubernetes.default.svc"
|
||||||
|
namespace: argocd
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
retry:
|
||||||
|
limit: 10
|
||||||
|
backoff:
|
||||||
|
duration: 5s
|
||||||
|
factor: 2
|
||||||
|
maxDuration: 3m0s
|
||||||
|
# {{- end }}
|
|
@ -21,6 +21,10 @@ argo-cd:
|
||||||
params:
|
params:
|
||||||
"server.insecure": "true"
|
"server.insecure": "true"
|
||||||
|
|
||||||
|
cluster-resources:
|
||||||
|
enabled: false
|
||||||
|
repoURL: 'https://github.com/auserthatdoesntexist/arepothatalsodoesntexist'
|
||||||
|
|
||||||
vault-agent-injector:
|
vault-agent-injector:
|
||||||
enabled: false
|
enabled: false
|
||||||
values: |
|
values: |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user