Skip to content

feat: will now also consider stanalone applications - #21

Merged
bosbaber merged 1 commit into
mainfrom
stephan/20260818-applications-folder-render
Aug 18, 2026
Merged

feat: will now also consider stanalone applications#21
bosbaber merged 1 commit into
mainfrom
stephan/20260818-applications-folder-render

Conversation

@bosbaber

Copy link
Copy Markdown
Contributor

No description provided.

@bosbaber bosbaber self-assigned this Aug 18, 2026
@bosbaber
bosbaber requested a lite review from Copilot August 18, 2026 08:34
@bosbaber
bosbaber merged commit cfd5db5 into main Aug 18, 2026
4 checks passed
@bosbaber
bosbaber deleted the stephan/20260818-applications-folder-render branch August 18, 2026 08:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the chartvalidator/checker tool so it can discover Helm charts not only from ArgoCD ApplicationSet manifests but also from standalone ArgoCD Application manifests, including multi-source Applications with helm.valueFiles.

Changes:

  • Replace the ApplicationSet-only chart discovery flow with a unified findCharts() that scans both appsets/ and applications/ layouts.
  • Add Application manifest parsing (applications.go) to extract chart sources and translate helm.valueFiles into local file paths.
  • Update Helm rendering to accept an ordered list of values files, and add unit tests for the new discovery/parsing behavior.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
chartvalidator/checker/types.go Adds ValueFiles and a helper to resolve which values files should be passed to Helm.
chartvalidator/checker/main.go Updates user-facing help text and switches to the new unified chart discovery function.
chartvalidator/checker/engine_chart_rendering.go Builds Helm args using a dynamic list of -f value files and validates their existence.
chartvalidator/checker/appsets.go Renames and expands chart discovery to support both ApplicationSets and Applications.
chartvalidator/checker/applications.go New Application scanner/parser supporting single-source, multi-source, and multi-document YAML.
chartvalidator/checker/applications_test.go New tests covering Application parsing, mixed-layout discovery, and resolved values-file behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +48 to 60
func (c ChartRenderParams) resolvedValueFiles() []valueFileRef {
if len(c.ValueFiles) > 0 {
refs := make([]valueFileRef, 0, len(c.ValueFiles))
for _, p := range c.ValueFiles {
refs = append(refs, valueFileRef{path: p, label: "values file"})
}
return refs
}
return []valueFileRef{
{path: c.BaseValuesFile, label: "base values file"},
{path: c.ValuesOverride, label: "values override file"},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants