use istio client-go library instead of knative (#1661)
use istio client-go library instead of knative bump kubernetes dependency version change code coverage to codecov
This commit is contained in:
14
vendor/github.com/projectcalico/libcalico-go/lib/clientv3/bgpconfig.go
generated
vendored
14
vendor/github.com/projectcalico/libcalico-go/lib/clientv3/bgpconfig.go
generated
vendored
@@ -129,6 +129,20 @@ func (r bgpConfigurations) ValidateDefaultOnlyFields(res *apiv3.BGPConfiguration
|
||||
Reason: "Cannot set ASNumber on a non default BGP Configuration.",
|
||||
})
|
||||
}
|
||||
|
||||
if res.Spec.ServiceExternalIPs != nil && len(res.Spec.ServiceExternalIPs) > 0 {
|
||||
errFields = append(errFields, cerrors.ErroredField{
|
||||
Name: "BGPConfiguration.Spec.ServiceExternalIPs",
|
||||
Reason: "Cannot set ServiceExternalIPs on a non default BGP Configuration.",
|
||||
})
|
||||
}
|
||||
|
||||
if res.Spec.ServiceClusterIPs != nil && len(res.Spec.ServiceClusterIPs) > 0 {
|
||||
errFields = append(errFields, cerrors.ErroredField{
|
||||
Name: "BGPConfiguration.Spec.ServiceClusterIPs",
|
||||
Reason: "Cannot set ServiceClusterIPs on a non default BGP Configuration.",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if len(errFields) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user