Skip to content

Commit

Permalink
revert headless svc change from k8s private svc
Browse files Browse the repository at this point in the history
  • Loading branch information
izabelacg committed May 29, 2024
1 parent 7fab945 commit 2b6388e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
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

0 comments on commit 2b6388e

Please sign in to comment.