- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetIpFamilyPolicy (0.33 sec)
-
pkg/registry/core/service/strategy.go
return reflect.DeepEqual(oldSvc.Spec.IPFamilies, newSvc.Spec.IPFamilies) } func getIPFamilyPolicy(svc *api.Service) string { if svc.Spec.IPFamilyPolicy == nil { return "" } return string(*svc.Spec.IPFamilyPolicy) } func sameIPFamilyPolicy(oldSvc, newSvc *api.Service) bool { return getIPFamilyPolicy(oldSvc) == getIPFamilyPolicy(newSvc) } func needsNodePort(svc *api.Service) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 11 13:09:36 UTC 2024 - 14.1K bytes - Viewed (0) -
pkg/registry/core/service/storage/alloc.go
} //TODO(thockin): Move this logic to validation? el := make(field.ErrorList, 0) // Update-only prep work. if oldService != nil { if getIPFamilyPolicy(service) == api.IPFamilyPolicySingleStack { // As long as ClusterIPs and IPFamilies have not changed, setting // the policy to single-stack is clear intent. // ClusterIPs[0] is immutable, so it is safe to keep.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:05 UTC 2023 - 37.3K bytes - Viewed (0) -
pkg/registry/core/service/strategy_test.go
} if !reflect.DeepEqual(result.Spec.IPFamilyPolicy, tc.expect.Spec.IPFamilyPolicy) { t.Errorf("expected ipFamilyPolicy %q, got %q", getIPFamilyPolicy(tc.expect), getIPFamilyPolicy(result)) } for i := range result.Spec.Ports { resultPort := result.Spec.Ports[i].NodePort expectPort := tc.expect.Spec.Ports[i].NodePort if resultPort != expectPort {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 32.4K bytes - Viewed (0)