Skip to content
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

Revert headless service change from k8s private service #15275

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pkg/reconciler/serverlessservice/resources/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ func MakePrivateService(sks *v1alpha1.ServerlessService, selector map[string]str
Port: targetPort(sks).IntVal,
TargetPort: targetPort(sks),
}},
Selector: selector,
ClusterIP: corev1.ClusterIPNone,
Selector: selector,
},
}
}
2 changes: 0 additions & 2 deletions pkg/reconciler/serverlessservice/resources/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ func privateSvcMod(s *corev1.Service) {
"app": "sadness",
}
}
s.Spec.ClusterIP = corev1.ClusterIPNone
s.Spec.Ports = append(s.Spec.Ports,
[]corev1.ServicePort{{
Name: servingv1.AutoscalingQueueMetricsPortName,
Expand Down Expand Up @@ -471,7 +470,6 @@ func TestMakePrivateService(t *testing.T) {
s.Labels["ava"] = "adore"
s.Labels[networking.SKSLabelKey] = "dream-tonight-cherub-rock-mayonnaise-hummer-disarm-rocket-soma-quiet"
s.Annotations = map[string]string{"cherub": "rock"}
s.Spec.ClusterIP = corev1.ClusterIPNone
}, privateSvcMod, func(s *corev1.Service) {
// And now patch port to be http2.
s.Spec.Ports[0] = corev1.ServicePort{
Expand Down
Loading