-
Notifications
You must be signed in to change notification settings - Fork 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
add ingress annotation: kubernetes.io/ingress.class #2999
Conversation
cc @Al-assad |
Hi @chenshaojin, there are some code style issues in this pull request |
ok, I will format the code style. |
"nginx.ingress.kubernetes.io/rewrite-target" -> "/$2", | ||
"nginx.ingress.kubernetes.io/proxy-body-size" -> "1024m", | ||
"nginx.ingress.kubernetes.io/configuration-snippet" -> ("rewrite ^(/" + clusterId + ")$ $1/ permanent;") | ||
) | ||
val ingressClass = InternalConfigHolder.get[String](K8sFlinkConfig.ingressClass) |
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.
It can be improved to make the logic clearer:
val ingressClass = InternalConfigHolder.get[String](K8sFlinkConfig.ingressClass)
if (ingressClass.nonEmpty) {
annotations + ("kubernetes.io/ingress.class" -> ingressClass)
}
annotations
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.
ok
@chenshaojin there are some code style issues in PR, you can run command to fix it: |
I see. thx |
cc @wolfboys |
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
What changes were proposed in this pull request
Issue Number: close #2998