Skip to content

Commit

Permalink
Argo cd bootstrap parameters (#134)
Browse files Browse the repository at this point in the history
* Enabled the use of parameters in ArgoCD applications

* Update Chart.yaml
  • Loading branch information
lukasgomez authored May 2, 2024
1 parent 74d9382 commit 0405b2f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 24 deletions.
2 changes: 1 addition & 1 deletion charts/argocd-app-bootstrap/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0.0"
description: Helm chart to automatically provision ArgoCD application and projects
name: argocd-app-bootstrap
version: 1.0.17
version: 1.0.18
8 changes: 8 additions & 0 deletions charts/argocd-app-bootstrap/templates/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
{{- range .externalValuesFiles }}
- {{ . }}
{{- end }}
{{- if .parameters }}
parameters:
{{- .parameters | toYaml | nindent 8 }}
{{- end }}
{{- else }}
repoURL: "{{ $.Values.repoURL }}"
targetRevision: "{{ $.Values.targetRevision }}"
Expand All @@ -54,6 +58,10 @@ spec:
{{- range .extraValuesFiles }}
- {{ . }}
{{- end }}
{{- if .parameters }}
parameters:
{{- .parameters | toYaml | nindent 8 }}
{{- end }}
{{- end }}
destination:
server: https://kubernetes.default.svc
Expand Down
46 changes: 23 additions & 23 deletions charts/argocd-app-bootstrap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@ projects:
destinations: []
sourceRepos: []
adminGroups: []
# my-project:
# adminGroups:
# - [email protected]
# applications:
# - name: app-name
# enabled: true
# isExternalApp: true
# externalRepoURL: external-repo-URL
# externalTargetRevision: external-repo-URL
# externalPath: path
# externalValuesFiles:
# - values.yaml
# - extra-values-file.yaml
# deleteAppResourcesOnAppDeletion: false
# extraValuesFiles:
# - extra-values-file.yaml
# namespace: my-namespace
# autoSync:
# enabled: true
# selfHeal: true
# prune: true
# extraSyncOptions:
# - ServerSideApply=true
# applications:
# - name: app-name
# enabled: true
# isExternalApp: true
# externalRepoURL: external-repo-URL
# externalTargetRevision: external-repo-URL
# externalPath: path
# externalValuesFiles:
# - values.yaml
# - extra-values-file.yaml
# parameters:
# - name: "example"
# value: "example"
# deleteAppResourcesOnAppDeletion: false
# extraValuesFiles:
# - extra-values-file.yaml
# namespace: my-namespace
# autoSync:
# enabled: true
# selfHeal: true
# prune: true
# extraSyncOptions:
# ServerSideApply: true

0 comments on commit 0405b2f

Please sign in to comment.