-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
helm charts - ingress.class could be extracted to variable (refactoring) #13927
Comments
For this to make sense, the helm chart should also offer the possibility to define the other custom annotations on the ingresses that the given ingress controller (chosen by the ingress.class annotation) requires. |
Also note, that we use the hardcoded |
To explain my concerns in more detail. Currently, we hardcode the This is already bad, because it gives the helm chart user a false idea that somehow they can configure the helm chart to use some other ingress controller (through the So, by adding the option to configure the IMHO, there are 2 approaches to this problem:
@l0rd, @skabashnyuk, @sleshchenko wdyt? |
I like the second option. I would investigate option to have multiple ingress configurations prepared and let user choose which one to use. I'm not sure whether it is doable though. |
@metlos makes sense. But I am not sure that server and workspaces ingresses should always be "coordinated". It makes sense for small clusters but on real world clusters with multiple ingress controllers, server side and workspaces side ingress classes may need to be different. What I mean is that users should able specify ingress class and annotations for both server and workspace ingresses. Making them "coordinated" may be gold plating. |
we've decided to close this one as won't fix and proper solution fixing using various ingress configurations will be investigated in #14230 and fixed in following tasks. |
Is your task related to a problem? Please describe.
nginx
is used repeatedly as a value foringress.class
in helm. This could be extracted to variable.examples:
https://github.com/eclipse/che/blob/master/deploy/kubernetes/helm/che/custom-charts/che-jaeger/templates/ingress.yaml#L18
https://github.com/eclipse/che/blob/master/deploy/kubernetes/helm/che/custom-charts/che-keycloak/templates/ingress.yaml#L16
Describe the solution you'd like
Find usages of
nginx
as aningress.class
and extract it tovalues.yaml
https://github.com/eclipse/che/blob/master/deploy/kubernetes/helm/che/values.yamlDescribe alternatives you've considered
It's refactoring and it does not affect functionality. We don't have to do that.
Additional context
with devfile and plugin registry coming to helm charts and following the pattern, it will be at more places #13890
The text was updated successfully, but these errors were encountered: