Skip to content

Expose the search repo api and implement the model - #14

Open
markretallack wants to merge 4 commits into
azimuth-cloud:mainfrom
markretallack:main
Open

Expose the search repo api and implement the model #14
markretallack wants to merge 4 commits into
azimuth-cloud:mainfrom
markretallack:main

Conversation

@markretallack

Copy link
Copy Markdown

Hi, hopefully I have dont this correctly. This adds the code to expose the results from the "search repo" command so that versions can be listed.

@irt-shpc irt-shpc left a comment

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.

Thanks for your contribution, sorry it took too long to be reviewed.
The confusion around capital letters was due to chart dependencies being able to have aliases that the CLI tool reports as names, they were never translated to names in deployed Kube objects. We now have a separate DependencyNameOrAlias type so I think you can drop the commit around allowing capitals.
I've posted a link to the Chart.yaml Go code so if you can rebase the branch and update the types in the model we can get this merged.
Did you have any ideas on how to test this?

Comment thread pyhelm3/models.py
"""
Model for chart version, from search results
"""
name: NonEmptyString = Field(

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.

This is the source of truth for the Chart.yaml structure https://github.com/helm/helm/blob/7e641d30a9355b43a9729d04c2771215ed926899/internal/chart/v3/metadata.go#L48 It says that the description should be an optional nonEmpty string and the chart name shouldn't have capital letters as it needs to meet the DNS rules enforced by Kubernetes objects.

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