try kustomize overlays
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: {{ $app_name }}
|
||||
name: {{ index (splitList "/" $app_name) 0 }}
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
@@ -13,15 +13,12 @@ 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 }}
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
{{- if $app.kustomize }}
|
||||
kustomize:
|
||||
{{- toYaml $app.kustomize | nindent 6 }}
|
||||
{{- end }}
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
|
||||
Reference in New Issue
Block a user