Skip to content

Fix: Ignore alias validation error for index load#12789

Merged
mattfarina merged 2 commits intohelm:mainfrom
gjenkins8:fix_chart_index_load_invalid_alias
Feb 19, 2024
Merged

Fix: Ignore alias validation error for index load#12789
mattfarina merged 2 commits intohelm:mainfrom
gjenkins8:fix_chart_index_load_invalid_alias

Conversation

@gjenkins8
Copy link
Copy Markdown
Member

@gjenkins8 gjenkins8 commented Feb 8, 2024

What this PR does / why we need it:

This PR skips the alias validation error introduced in #9176 when loading chart indexes.
fixes: #12735
fixes: #12748

Special notes for your reviewer:
Checking the error type and string is super brittle. And IMHO super hacky. Happy for other suggestions. Without introducing a full "chart validation" type/interface, I didn't really see another (easy) option :(. But I do think we should attempt to not revert #9176 .

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 8, 2024
@gjenkins8 gjenkins8 added this to the 3.14.1 milestone Feb 8, 2024
@mattfarina mattfarina added the Has One Approval This PR has one approval. It still needs a second approval to be merged. label Feb 8, 2024
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
Copy link
Copy Markdown
Contributor

@sabre1041 sabre1041 left a comment

Choose a reason for hiding this comment

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

LGTM. Confirmed contents of PR addresses error as described in this issue

@mattfarina mattfarina merged commit c7f318c into helm:main Feb 19, 2024
@gjenkins8 gjenkins8 deleted the fix_chart_index_load_invalid_alias branch February 19, 2024 21:06
@gjenkins8 gjenkins8 restored the fix_chart_index_load_invalid_alias branch February 19, 2024 21:06
@gjenkins8 gjenkins8 deleted the fix_chart_index_load_invalid_alias branch February 19, 2024 21:07
@fad3t
Copy link
Copy Markdown

fad3t commented Mar 6, 2024

I see milestone was set to 3.14.2, but it was not released yet, right?

@Pobek
Copy link
Copy Markdown

Pobek commented Mar 6, 2024

I see milestone was set to 3.14.2, but it was not released yet, right?

Milestone 3.14.2 is scheduled to be released by March 13, 2024. https://github.com/helm/helm/milestone/138

@erikgb
Copy link
Copy Markdown

erikgb commented Mar 6, 2024

I see milestone was set to 3.14.2, but it was not released yet, right?

Milestone 3.14.2 is scheduled to be released by March 13, 2024. https://github.com/helm/helm/milestone/138

Then what is this https://github.com/helm/helm/releases/tag/v3.14.2? 🧐

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

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

validation: more than one dependency with name or alias helm dependency update failing to pull from JFROG but "helm pull" works just fine.

6 participants