feat(argocd-apps): add rawDirectory flag to opt out of helm rendering#245
Open
yreinhar wants to merge 1 commit into
Open
feat(argocd-apps): add rawDirectory flag to opt out of helm rendering#245yreinhar wants to merge 1 commit into
yreinhar wants to merge 1 commit into
Conversation
When rawDirectory=true in the project git config, the ArgoCD Application uses a plain directory source instead of Helm. Needed for sources that contain raw Kubernetes YAML (e.g. ApplicationSets) rather than a chart.
hoeftale
reviewed
Jun 24, 2026
| path: {{ $project.git.path | default $projectName }} | ||
| repoURL: {{ $project.git.repoUrl }} | ||
| targetRevision: {{ $project.git.branch | default "main" }} | ||
| {{- if $project.git.rawDirectory }} |
Contributor
There was a problem hiding this comment.
If you do not need specific directory settings there is no need to set the directory directive explictily. "recurse: false" is the default.
If you need directory settings, please support setting these via values, e.g. $project.directorySettings
If you do not need for directory settings, it would be enough to omit the helm directive below. In this case please guard the .helm directive via "if $project.tofuValues"
Contributor
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When rawDirectory=true in the project git config, the ArgoCD Application uses a plain directory source instead of Helm. Needed for sources that contain raw Kubernetes YAML (e.g. ApplicationSets) rather than a chart.