-
Notifications
You must be signed in to change notification settings - Fork 670
Add support to configure multiple helm chart repo using HelmChartRepository CRD #5933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to configure multiple helm chart repo using HelmChartRepository CRD #5933
Conversation
|
The client should only call Behind the scenes, it is a..
As a test, the UI should render fine with zero UI changes. |
|
@rohitkrai03 @parvathyvr |
|
@akashshinde |
@sbose78 Early designs for the epic used the chart repository name and URL in the side panel of chart in the catalog. We might also need that data to visually distinguish between same charts coming from different repositories similar to how its done in Helm Hub. @parvathyvr can add more details from UX side. |
|
Gotcha, @rohitkrai03 @akashshinde What's your suggestion on how the UI could get that data from the returned long index.yaml ? |
|
@rohitkrai03 Just wondering how UI get to know the chart repo information currently, I see backed only returns https://github.com/helm/helm/blob/9c0fca9aeb9f93c0743c3e234df7e73832b46576/pkg/repo/index.go#L79 struct and this does struct does not really hold the information about the chart repo origin. |
|
The UI probably doesn't care now since there's only one possible repo. |
|
There are following ways to embed chart repo metadata in the 1. Embed chart metadata in chart annotations.index.yaml response would be Pros
Cons
2. Have a extra field in the root of each yaml file response, and embed chart metadata in it.index.yaml response would be Pros
Cons
cc: @sbose78 @rohitkrai03 |
|
I'll go for option 1 |
|
There are couple of use cases we need to tackle.
cc: @sbose78 |
|
@akashshinde |
|
Non-kube-admin users should be able to have |
Great, that's the way implementation is done . |
|
Could you please attach GIFs/screenshots/demo videos, @akashshinde ? |
uploaded a demo video: https://youtu.be/r68ZWHzZMVA |
I see a cache issue there. As discussed, could we address it please? |
Solution: cc: @sbose78 |
|
Raised PR #6044 to handle backlisting unwanted headers. |
2d5787f to
deaea19
Compare
deaea19 to
b89daa9
Compare
pkg/helm/actions/get_repos.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
b89daa9 to
24991e5
Compare
982ae27 to
464aa8c
Compare
464aa8c to
54701da
Compare
|
/lgtm |
|
/retest |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akashshinde, sbose78, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test e2e-gcp-console |
|
/retest |
1 similar comment
|
/retest |
|
/test e2e-gcp-console |
Although console endpoint `/api/helm/charts/index.yaml` handles the situation when there is no HelmChartRepository CR present in the cluster, we should align us to other default cluster settings and provide the default HelmChartRepository CR in the payload Prior introducing openshift/console#5933 all authenticated users could browse the charts from the chart repo. This PR restores that functionality by introducing additional `helm-chartrepos-viewer` ClusterRole, binding it to all authenticated users.
Although console endpoint `/api/helm/charts/index.yaml` handles the situation when there is no HelmChartRepository CR present in the cluster, we should align us to other default cluster settings and provide the default HelmChartRepository CR in the payload. Default configuration can be removed/edited by cluster admin. Prior introducing openshift/console#5933 all authenticated users could browse the charts from the chart repo. This PR restores that functionality by introducing additional `helm-chartrepos-viewer` ClusterRole, binding it to all authenticated users.
This PR adds support to configure multiple helm chart repos in openshift.
It uses
HelmChartRepositoryCRD to add multiple repository support. ref PR: openshift/api#598How to test
Register
HelmChartRepositoryCRDAdd two helm chart repository
Run console in dev mode
Build
Setup environment to use openshift cluster context
Start console backend
Make rest call to helm chart endpoint
Demo Link: https://youtu.be/r68ZWHzZMVA