-
Notifications
You must be signed in to change notification settings - Fork 11
Updates ingress definition with ingressClassName field #51
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
base: main
Are you sure you want to change the base?
Conversation
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.
Sorry for missing this.
Can you also bump the chart version
version: 0.4.11 |
to
0.4.12
? This will trigger an automated release of the chart after this is merged.
{{- if .Values.ingress.className }} | ||
ingressClassName: {{ .Values.ingress.className }} |
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.
{{- if .Values.ingress.className }} | |
ingressClassName: {{ .Values.ingress.className }} | |
{{- with .Values.ingress.className }} | |
ingressClassName: {{ . }} |
Just a minor style point- this avoids some repetition
@@ -66,9 +66,10 @@ service: | |||
enabled: true | |||
clientTimeout: 3600 | |||
|
|||
# Only used for omero websockets | |||
# Only used for omero websockets (wegsockets needs to be activated) |
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.
# Only used for omero websockets (wegsockets needs to be activated) | |
# Only used for omero websockets (not activated by default) |
{{- if .Values.ingress.className }} | ||
ingressClassName: {{ .Values.ingress.className }} |
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.
{{- if .Values.ingress.className }} | |
ingressClassName: {{ .Values.ingress.className }} | |
{{- with .Values.ingress.className }} | |
ingressClassName: {{ . }} |
This PR adds the possibility of stating a name of a IngressClass in a field "ingressClassName".
Why?
I am getting the following warning when I deploy the ingresses with the annotation instead of the dedicated field from the spec
W1129 12:41:17.534196 143471 warnings.go:70] annotation "kubernetes.io/ingress.class" is deprecated, please use 'spec.ingressClassName' instead
See also https://kubernetes.io/docs/concepts/services-networking/ingress/#deprecated-annotation