Skip to content

feat: add functionality to helm-update-chart to match on an alias#5902

Draft
aaron-lunsford-even wants to merge 1 commit intoakuity:mainfrom
aaron-lunsford-even:aaron-lunsford-even/issue-5891-01
Draft

feat: add functionality to helm-update-chart to match on an alias#5902
aaron-lunsford-even wants to merge 1 commit intoakuity:mainfrom
aaron-lunsford-even:aaron-lunsford-even/issue-5891-01

Conversation

@aaron-lunsford-even
Copy link
Copy Markdown

@aaron-lunsford-even aaron-lunsford-even commented Mar 11, 2026

Closes #5891

Implements a new alias option to the helm-update-chart step that allows matching on a chart dependency's alias field.

@aaron-lunsford-even aaron-lunsford-even requested review from a team as code owners March 11, 2026 17:56
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 11, 2026

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit b9b23cd
🔍 Latest deploy log https://app.netlify.com/projects/docs-kargo-io/deploys/69b1ad7f219ac8000886877d
😎 Deploy Preview https://deploy-preview-5902.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Aaron Lunsford <aaron.lunsford@one.app>
@aaron-lunsford-even aaron-lunsford-even force-pushed the aaron-lunsford-even/issue-5891-01 branch from e473f6e to b9b23cd Compare March 11, 2026 17:59
@aaron-lunsford-even aaron-lunsford-even changed the title add functionality to helm-update-chart to match on an alias feat: add functionality to helm-update-chart to match on an alias Mar 11, 2026
@@ -19,6 +19,7 @@ referenced by the Freight being promoted. This step is commonly followed by a
| `charts` | `[]object` | N | The details of dependency (subchart) updates to be applied to the chart's `Chart.yaml` file. When left unspecified, charts will be updated according to the SemVer ranges declared in the `Chart.yaml` file. |
| `charts[].repository` | `string` | Y | The URL of the Helm chart repository in the `dependencies` entry whose `version` field is to be updated. Must _exactly_ match the `repository` field of that entry. |
| `charts[].name` | `string` | Y | The name of the chart in in the `dependencies` entry whose `version` field is to be updated. Must exactly match the `name` field of that entry. |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is name now optional? Appears to be mutually exclusive with alias. Can't you always match on name in addition to alias? Could you give a couple of examples in the description?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Helm uses repository + name together as the full identifier for a chart.

The right thing here would be to have the repository + name pair mutually exclusive with alias.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pkg/promotion/runner/builtin/schemas/helm-update-chart-config.json would be the right place to codify that.

Then you need to run make hack-codegen to re-generate step configuration from that modified schema.

Then pkg/promotion/runner/builtin/helm_chart_updater.go needs changes to propagate the new configuration option down to the lower level code you already modified.

I'm going to change this to a draft for now.

@krancour krancour added this to the v1.10.0 milestone Mar 19, 2026
@krancour krancour added kind/enhancement An entirely new feature priority/normal This is the priority for most work area/controller Affects the (main) controller priority/low Low commitment from maintainers; progress is likely to be community-driven and removed priority/normal This is the priority for most work labels Mar 19, 2026
@krancour krancour marked this pull request as draft March 19, 2026 21:32
@krancour
Copy link
Copy Markdown
Member

I have this in the v1.10.0 milestone, but that's only tentative.

@krancour krancour self-assigned this Mar 19, 2026
@krancour krancour modified the milestones: v1.10.0, v1.11.0 Apr 2, 2026
@krancour
Copy link
Copy Markdown
Member

@aaron-lunsford-even were you intending to continue on this PR or should I close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/controller Affects the (main) controller kind/enhancement An entirely new feature priority/low Low commitment from maintainers; progress is likely to be community-driven

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the helm-update-chart step to support dependency matching by alias

3 participants