Skip to content

Comments

helm: Fall back gracefully when chart URL has no matching repository#16049

Open
sowmya-sl wants to merge 1 commit intoopenshift:mainfrom
sowmya-sl:add-upgrade-path
Open

helm: Fall back gracefully when chart URL has no matching repository#16049
sowmya-sl wants to merge 1 commit intoopenshift:mainfrom
sowmya-sl:add-upgrade-path

Conversation

@sowmya-sl
Copy link
Contributor

Instead of returning an error when no HelmChartRepository matches the chart URL, log an info message and return a ChartInfo with the version extracted from the URL. This allows charts from registries without a configured repository to be resolved.
This helps when the customer has installed helm chart using Helm CLI and wants to upgrade it via console.

Instead of returning an error when no HelmChartRepository matches the
chart URL, log an info message and return a ChartInfo with the version
extracted from the URL. This allows charts from registries without a
configured repository to be resolved.
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 23, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 23, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added component/backend Related to backend approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 23, 2026
@sowmya-sl sowmya-sl marked this pull request as ready for review February 23, 2026 13:34
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 23, 2026
@openshift-ci openshift-ci bot requested review from martinszuc and webbnh February 23, 2026 13:35
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 23, 2026

@sowmya-sl: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

I assume that this change is OK, but I have some questions.

/lgtm

Comment on lines +133 to +135
return &ChartInfo{
Version: chartVersionFromURL(chartUrl),
}, nil
Copy link

Choose a reason for hiding this comment

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

So, we fabricate a Version from the URL but we leave the Name blank? That seems like a curious choice...can't we extract the Name from the URL too? Is there a reason why we don't want to do that? (And, are we prepared for what happens if we return empty-handed from chartVersionFromURL()? In particular, is this going to do the right thing given an oci:// URL?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The other fields are tied to repository - repository.Name, repository.Namespace, chartIndex. This is for a case where there is no repository available. We don't want to guess these names, as the customer might have input them differently.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 23, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 23, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sowmya-sl, webbnh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/backend Related to backend lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants