Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iceowlbeer
Copy link
Contributor

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

Copy link
Owner

@manics manics left a 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


to 0.4.12? This will trigger an automated release of the chart after this is merged.

Comment on lines +24 to +25
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
{{- 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)
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
# Only used for omero websockets (wegsockets needs to be activated)
# Only used for omero websockets (not activated by default)

Comment on lines +19 to +20
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}

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.

2 participants