Skip to content

feat: oci aware chart rendering#16

Merged
bosbaber merged 1 commit into
mainfrom
stephan/20260513-oci
May 13, 2026
Merged

feat: oci aware chart rendering#16
bosbaber merged 1 commit into
mainfrom
stephan/20260513-oci

Conversation

@bosbaber
Copy link
Copy Markdown
Contributor

No description provided.

@bosbaber bosbaber self-assigned this May 13, 2026
@bosbaber bosbaber requested a review from Copilot May 13, 2026 07:16
@bosbaber bosbaber merged commit 1979bf9 into main May 13, 2026
5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds OCI-awareness to the chart rendering path in chartvalidator so Helm templating works for both classic chart repos and OCI registries.

Changes:

  • Build the helm template invocation differently for OCI repos by omitting --repo and using a fully-qualified OCI chart reference.
  • Add small helpers (isOCIRepo, resolveChartReference) to centralize OCI detection/reference construction.
  • Extend tests to cover OCI rendering and update the expected non-OCI command string ordering.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
chartvalidator/checker/engine_chart_rendering.go Conditionally omits --repo for OCI and resolves OCI chart refs as oci://.../<chartName>.
chartvalidator/checker/engine_chart_rendering_test.go Updates baseline expected command order and adds an OCI-specific render test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


func resolveChartReference(chart ChartRenderParams) string {
if isOCIRepo(chart.RepoURL) {
return fmt.Sprintf("%s/%s", strings.TrimSuffix(chart.RepoURL, "/"), chart.ChartName)
Comment on lines +58 to +65
testChart.RepoURL = "oci://europe-west4-docker.pkg.dev/wallet-dev-462809/interledger-helm-charts"
engine.inputChan <- testChart

result := <-engine.resultChan
assertChartFieldsMatch(t, testChart, result.Chart)

// OCI charts should be templated using the full OCI chart reference, not --repo.
expectedCommand := "helm template oci://europe-west4-docker.pkg.dev/wallet-dev-462809/interledger-helm-charts/test-chart --release-name test-chart -f values.yaml -f override.yaml --version 1.0.0 --include-crds --kube-version 1.33.0 --api-versions something --api-versions something-else"
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