-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add global.ingressClassName
anchor without default value
#31
Conversation
Hi @imgios, thanks for your work!
sonarr:
ingress:
sonarr-ing:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-cloudflare
enabled: true
expandObjectName: false
hosts:
- host: <REDACTED>
paths:
- path: /
pathType: Prefix
ingressClassName: null This will cause the ingress objects to be created like this: kubectl get ing -n servarr
NAME CLASS HOSTS ADDRESS PORTS AGE
radarr-ing <none> <REDACTED> 80, 443 4s
jellyfin-ing <none> <REDACTED> 80, 443 4s
sonarr-ing <none> <REDACTED> 80, 443 4s
prowlarr-ing <none> <REDACTED> 80, 443 4s
jellyseerr-ing <none> <REDACTED> 80, 443 4s
qbittorrent-ing <none> <REDACTED> 80, 443 4s
I don't know of any other option.. if we put "-", we get an error about yaml syntax (probably because the dash sign is interpreted as the beginning of a list). Probably we just need to force the users to write something here 😅 |
Thanks for testing this out. I would more like to leave the anchors out instead of forcing the user to write something. What do you think? This means that we also have to review the storageClass next. |
Let's do one thing. For the moment, I will use nginx as default value, in this way we have one piece already in place (the anchors that let us change the ingressClass everywhere). The best would be having the dependencies able to read parameters from the global section, I will try to discuss with them 😊 |
Tell the end user to not use &ingressClassName "" otherwise the deployment will use a null value
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.
LGTM
There's a new
global.ingressClassName
parameter that can be used to change the Ingress Class.The Ingress Class is set all around the values with the default value
nginx
.New global parameter
global.ingressClassName
that makes use of YAML anchors to spread it all around the Chart.No
None