-
Notifications
You must be signed in to change notification settings - Fork 767
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
web and websecure entrypoints shouldn't be present in default values.yaml #220
Comments
Hi @Issif, web: {}
websecure: {} |
I'll give a try. Thanks for the tip. |
@Daverkex We tried, it didn't worked. I think we'll have to override the |
@Issif Correct. Entrypoints are defined directly from the ports here {{- range $name, $config := .Values.ports }}
{{- if $config }}
- "--entryPoints.{{$name}}.address=:{{ $config.port }}/{{ default "tcp" $config.protocol | lower }}"
{{- end }}
{{- end }} that would also need to be fixed in a similar manner here: |
@dirtycajunrice done. Happy to see you grabbing this |
Hi @dirtycajunrice Following does not work and still include for example the websecure port: # Not working. Websecure entrypoint still created
websecure: {}
# Not working. Websecure entrypoint still created
# Comment or remove the port
# websecure: {} This works and removes the websecure entrypoint for generated yaml: # Just keep it empty
websecure:
# Set it to null
websecure: null The default Maybe this could be documented? Or the default values.yaml should not contain any ports at all? (Except the traefik port) |
Ports need to be there for the k8s service. However, documenting it could be a good idea :) |
@BlackDark Morning! I am always for more docs! That said I am not sure if "explaining helm" is in scope. Since sometime back in 2017 Helm has used "deep merging" which will inherently merge any dictionaries of any depth. What that means is Before the MR, if you had done So the question remains: How far do you think a repo should go in the inline docs before expecting someone to read the helm docs? If this is a "special" circumstance lemme know ill add the docs to my next MR :) |
@dirtycajunrice i see your point. Changing the default to not include those port would probably also result in problems for many peoples. But explaining helm features is sure nothing we need :D |
The ports are for example used, for the service created by the helm-chart (https://github.com/containous/traefik-helm-chart/blob/c174d5bb241bb567beb32022382b3eaf2a1e2c18/traefik/templates/service.yaml#L89). Therefore, I'm not sure what you mean by removing and all is fine. But I guess, we're dragging a bit off topic :) |
Hi,
We use this helm chart as a dependency:
It means the default
values.yaml
which is present in this repository is applied andweb
andwebsecure
entrypoints are created whatever we set in our ownvalues.yaml
. See here.This is annoying because we want to use port 8000 for another purpose. We can override the port for
web
(andwebsecure
) but these entrypoints are there, no matter what and we do not want useless and confusant config.I understand the aim behind, which is offering a valid and functionnal chart, but it leads to a chart helm which is rigid and not 100% modular.
We can keep those parts as commented for example, but not force them to be set.
The text was updated successfully, but these errors were encountered: