Rename IPFamilyPolicyType => IPFamilyPolicy
This commit is contained in:
@@ -694,7 +694,7 @@ func validateNumOfServicePorts(svc *v1.Service, expectedNumOfPorts int) {
|
||||
}
|
||||
}
|
||||
|
||||
func validateServiceAndClusterIPFamily(svc *v1.Service, expectedIPFamilies []v1.IPFamily, expectedPolicy *v1.IPFamilyPolicyType) {
|
||||
func validateServiceAndClusterIPFamily(svc *v1.Service, expectedIPFamilies []v1.IPFamily, expectedPolicy *v1.IPFamilyPolicy) {
|
||||
if len(svc.Spec.IPFamilies) != len(expectedIPFamilies) {
|
||||
framework.Failf("service ip family nil for service %s/%s", svc.Namespace, svc.Name)
|
||||
}
|
||||
@@ -777,7 +777,7 @@ func checkNetworkConnectivity(ip, port string, timeout int) []string {
|
||||
}
|
||||
|
||||
// createService returns a service spec with defined arguments
|
||||
func createService(name, ns string, labels map[string]string, ipFamilyPolicy *v1.IPFamilyPolicyType, ipFamilies []v1.IPFamily) *v1.Service {
|
||||
func createService(name, ns string, labels map[string]string, ipFamilyPolicy *v1.IPFamilyPolicy, ipFamilies []v1.IPFamily) *v1.Service {
|
||||
return &v1.Service{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: name,
|
||||
|
Reference in New Issue
Block a user