-
Notifications
You must be signed in to change notification settings - Fork 14
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
assigning svc CLuster IP when svc is a NodePort #1099
base: main
Are you sure you want to change the base?
Conversation
I'm not sure this is an allowed behaviour, please see kubernetes/kubernetes#119700 |
hey @wasaga, thanks for your time, so I inspired the implementation from nginx-ingress code because we were wondering why it was working for inrgess-nginx and not for pomerium |
@wasaga I updated the branch, can you check if everything is good so we can merge it ? |
IP: src[i].IP, | ||
Ports: svcPortToIngress(src[i].Ports), | ||
func svcStatusToIngress(svc *corev1.Service) []networkingv1.IngressLoadBalancerIngress { | ||
if svc.Spec.Type == corev1.ServiceTypeLoadBalancer { |
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.
nit: maybe also check for service type ClusterIP here, like
switch svc.Spec.Type {
case corev1.ServiceTypeLoadBalancer:
...
case corev1.ServiceTypeNodePort:
...
default:
return nil
}
Summary
Related issues
Checklist
improvement
/bug
/ etc)