try kustomize patch with argocd
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{- range $app_name := .Values.tools -}}
|
||||
{{- range $app_name, $app := .Values.tools }}
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
@@ -13,6 +13,16 @@ spec:
|
||||
repoURL: https://gitea.arcodange.duckdns.org/arcodange-org/tools
|
||||
targetRevision: HEAD
|
||||
path: {{ $app_name }}
|
||||
{{- if $app.patches }}
|
||||
helm:
|
||||
patches:
|
||||
{{- range $patch := $app.patches }}
|
||||
- target:
|
||||
{{- toYaml $patch.target | nindent 12 }}
|
||||
patch: |-
|
||||
{{ $patch.patch | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: tools
|
||||
@@ -22,4 +32,4 @@ spec:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user