mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 15:09:39 +00:00
Merge pull request #46099 from shashidharatd/revert-45798-federated-service
Automatic merge from submit-queue (batch tested with PRs 47851, 47824, 47858, 46099) Revert "[Federation] Fix federated service reconcilation issue due to addition of External…" Reverts kubernetes/kubernetes#45798 Reverting the temporary fix as the problem is fixed in #45869. with that fix federation also can default ExternalTrafficLocalOnly if not set. Issue: #45812 cc @MrHohn @madhusudancs @kubernetes/sig-federation-bugs
This commit is contained in:
@@ -566,11 +566,6 @@ func getOperationsToPerformOnCluster(informer fedutil.FederatedInformer, cluster
|
||||
}
|
||||
}
|
||||
}
|
||||
// If ExternalTrafficPolicy is not set in federated service, use the ExternalTrafficPolicy
|
||||
// defaulted to in federated cluster.
|
||||
if desiredService.Spec.ExternalTrafficPolicy == v1.ServiceExternalTrafficPolicyType("") {
|
||||
desiredService.Spec.ExternalTrafficPolicy = clusterService.Spec.ExternalTrafficPolicy
|
||||
}
|
||||
|
||||
// Update existing service, if needed.
|
||||
if !Equivalent(desiredService, clusterService) {
|
||||
|
Reference in New Issue
Block a user