Skip to content

Commit

Permalink
Merge pull request #104477 from ricky-rav/dev_bz_1994486
Browse files Browse the repository at this point in the history
backported PR#97721 from v1.21 ("fix slice controller logging for services ipfamily")
  • Loading branch information
k8s-ci-robot committed Oct 6, 2021
2 parents 0416250 + 2752ac9 commit 08e12d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/endpointslice/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func getAddressTypesForService(service *corev1.Service) map[discovery.AddressTyp
addrType = discovery.AddressTypeIPv6
}
serviceSupportedAddresses[addrType] = struct{}{}
klog.V(2).Infof("couldn't find ipfamilies for headless service: %v/%v. This could happen if controller manager is connected to an old apiserver that does not support ip families yet. EndpointSlices for this Service will use %s as the IP Family based on familyOf(ClusterIP:%v).", service.Namespace, service.Name, addrType, service.Spec.ClusterIP)
klog.V(2).Infof("couldn't find ipfamilies for service: %v/%v. This could happen if controller manager is connected to an old apiserver that does not support ip families yet. EndpointSlices for this Service will use %s as the IP Family based on familyOf(ClusterIP:%v).", service.Namespace, service.Name, addrType, service.Spec.ClusterIP)
return serviceSupportedAddresses
}

Expand Down

0 comments on commit 08e12d5

Please sign in to comment.