-
Notifications
You must be signed in to change notification settings - Fork 586
Added ability to configure Helm chart repository accessible within cluster #598
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
Added ability to configure Helm chart repository accessible within cluster #598
Conversation
|
The default chart repository is https://redhat-developer.github.io/redhat-helm-charts The following usecases require ability to configure the chart repo url:
Motivation: openshift/enhancements#175 |
soltysh
left a comment
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.
I miss enhancement doc describing the purpose of this.
|
@soltysh the motivation is openshift/enhancements#175 |
Enhancement freeze was last Friday since this is not merged the API can't merge either. Also look at my other comments. |
|
This approach appears to be based on a design that is console specific. I would expect the operator type itself to be extended (here probably: design appears to be console specific. You could start by moving here https://github.com/openshift/api/blob/master/operator/v1/types_console.go) instead of adjusting a top level configuration item. This seems to be a detail present today for extension that we may want an option to change in the future. Doesn't OLM have a comparable configuration option? Can OLM look at helm? The other thing that comes to mind is that this has value for an OLM managed console, which I think we want to someday have. Instead of payload only. |
|
All good points. It seems the final place for this config is not entirely known. This field on console config/operator may be later deprecated if helm was instead managed by OLM. |
|
Hi!
cc @derekwaynecarr @benjaminapetersen @spadgett Significant parts of the enhancement are already in Console today. This bit effectively allows customers/partners/admins to specify custom/disconnected helm repositories in OpenShift. This is an additional feature as part of a larger set of features which are already in Console, which we wish to get in well before feature freeze so that Console UI changes could be put in before feature freeze. We've presented the enhancement to Console stakeholders in early January when we first started designing and developing the "Helm in Console" support. I understand there's an enhancement lifecycle which hasn't been taken care of, yet :) We've tried to do our best to socialize the changes as much as possible. |
|
Hi @deads2k !
When Console is managed by OLM, we would still have a Console CRD, right? I would expect these attributes to be present in the Console API there as well, to begin with. Re: Having a separate resource to manage Helm This is a really good discussion to have! For the time being, I would envision the entire thing ( console and helm config ) to move as one thing to OLM. After that, if it makes sense, we can manage Helm components using a different resource.
David, could you please elaborate on this, please? I didn't quite get you. |
|
@deads2k @soltysh - copied here the comment made on the enchancement #175, hoping that the motivation is much clearer. Looking forward to your suggestions. Configuring Helm repository location can be modelled similar to url: http://my.chart-repo.org/stable
# optional and only needed for UI purposes
displayName: myChartRepo
# optional and only needed for UI purposes
description: my private chart repo
# set to true if need to be disabled temporarly
disabled: trueThe resource could be standalone, a part of
The console backend already implements a few helm endpoints (including the chart proxy), but the future might require to extract them into a separate service (e.g. to make openshift more modular). Hence, it would be good to define the configuration as the standalone resource (possibly cluster-wide or in a dedicated namespace, e.g. |
|
@pedjak Nice summary! |
Minutes of the meetingwith @derekwaynecarr @spadgett @benjaminapetersen
Action items:
The Helm repository could be configured by going to the Cluster Settings -> Global Configuration page:
|
1cc1962 to
f3ab4c8
Compare
|
I have updated the PR, please rereview it. |
|
Looks okay to me @pedjak . @benjaminapetersen @spadgett Could you please review? |
config/v1/0000_10_config-operator_01_helmchartrepository.crd.yaml
Outdated
Show resolved
Hide resolved
f3ab4c8 to
7a88443
Compare
|
I don't know if this has been clarified, if there is a problem with the helm config, should the If there are several helm configs provided:
Then |
12a36fe to
5af197a
Compare
|
I forgot the validation. lgtm otherwise, so I'll approve after validation. You should get someone else on the team to review and lgtm. |
|
/lgtm |
|
/lgtm |
|
/lgtm |
|
weird. I wonder if someone changed the bot /approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akashshinde, deads2k, pedjak, sbose78 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 |
|
Is the hold by @soltysh blocking the merge? /hold remove |
|
/hold cancel |
|
/retest Please review the full test history for this PR and help us cut down flakes. |

HelmChartRepositorytop-level CR