-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[helm] add if for ingressClassName #8613
Conversation
Signed-off-by: Jmnote <opcore@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jmnote The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -85,7 +85,7 @@ app: | |||
# https://localhost:8443 | |||
- localhost | |||
# - kubernetes.dashboard.domain.com | |||
ingressClassName: internal-nginx | |||
ingressClassName: "" |
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 ingressClassName
is ommited, , a default Ingress class should be defined.
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.
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.
I confirmed that it can be applied normally even if the value of ingressClassName:
is omitted in the YAML file as follows.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example
spec:
ingressClassName: #### Only key, no value
rules:
- host: example.com
http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: release-name-kubernetes-dashboard-web
port:
name: web
However, there don't seem to be many cases of empty value in the Kubernetes manifest or Helm Chart value yaml.
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
using default ingressClass by default.
AS-IS
TO-BE
If ingressClassName is not specified, the ingressClassName block is omitted. This allows us to use the cluster's default IngressClass.
similar case(helm chart):
https://github.com/prometheus-community/helm-charts/blob/alertmanager-1.7.0/charts/alertmanager/templates/ingress.yaml#L16-L18
k8s docs:
https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class