diff --git a/charts/argocd-apps/templates/application.yaml b/charts/argocd-apps/templates/application.yaml index b106946a..4e217b47 100644 --- a/charts/argocd-apps/templates/application.yaml +++ b/charts/argocd-apps/templates/application.yaml @@ -23,6 +23,10 @@ spec: path: {{ $project.git.path | default $projectName }} repoURL: {{ $project.git.repoUrl }} targetRevision: {{ $project.git.branch | default "main" }} + {{- if $project.git.rawDirectory }} + directory: + recurse: false + {{- else }} helm: values: | {{- $project.tofuValues | toYaml | nindent 10}} @@ -31,5 +35,6 @@ spec: {{- if ((($project.tofuValues).projectValues).stage) }} - values-{{ $project.tofuValues.projectValues.stage }}.yaml {{- end }} + {{- end }} --- {{- end }} diff --git a/charts/argocd-apps/values.yaml b/charts/argocd-apps/values.yaml index 86fae0fa..420580a5 100644 --- a/charts/argocd-apps/values.yaml +++ b/charts/argocd-apps/values.yaml @@ -36,6 +36,7 @@ projects: {} # secretStoreName: "" # Name of the secret store object created in K8s # accessType: "" # Options: https or ssh # secretPath: "" # Path to the secret in the targeted Hashicorp Vault +# rawDirectory: false # Optional, defaults to false. Set to true for plain Kubernetes YAML sources (e.g. ApplicationSets) to opt out of Helm rendering. # # helm registries credentials # helmRegistries: