Skip to content
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

Remove duplicated ingress in chart #1456

Merged
merged 1 commit into from
Jan 16, 2020
Merged

Remove duplicated ingress in chart #1456

merged 1 commit into from
Jan 16, 2020

Conversation

andresmgot
Copy link
Contributor

Description of the change

When enabling the ingress setup, two hosts with identical information are generated. One because the hostname is set and another one because the section hosts is also configured (the legacy mechanism to set ingresses).

cc/ @juan131

Copy link
Contributor

@juan131 juan131 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, but see inline comment.

# tls: false
# ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS
# ##
# tlsSecret: kubeapps.local-tls
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since .Values.ingress.enabled is false by default, won't removing the defaults for this deprecated option be a backwards incompatible change? (ie. as per the comment, something that should wait for 3.0.0)

Could we instead just add a condition around the host block, like:

## The block below is deprecated and must removed on 3.0.0 
{{- if not (eq Values.ingress.hostname .name) }}
- host: {{ .name }
  ...
{{- end }}

Copy link
Contributor Author

@andresmgot andresmgot Jan 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't be a breaking change because:

  • If the user has enabled: true and the hosts section has some custom parameters, reusing those values would work in the same way.
  • If the user has enabled: true and the hosts were left by default, upgrading will introduce the new hostname: kubeapps.local which will result in the same result.

Note that if enabled is false, nor the hostname or the hosts properties are taken into account.

@andresmgot andresmgot merged commit b0a2b5d into master Jan 16, 2020
@andresmgot andresmgot deleted the doubleIngress branch January 16, 2020 14:49
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.

3 participants