• Kubernetes Submit Queue's avatar
    Merge pull request #37323 from nikhiljindal/firstClusterPR · 63161202
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Fixing the logic to select first cluster in federated ingress controller
    
    Ref https://github.com/kubernetes/kubernetes/issues/36074.
    
    Before this change, ingress controller was using cluster with clusterIndex = 0 as the first cluster to create the ingress in.
    But the ordering of clusters can change and hence ingress controller ended up creating the ingress in multiple clusters.
    This PR fixes it by using an annotation on federated ingress. Controller now picks up a cluster randomly as the first cluster and creates ingress there. This clusters name is stored as an annotation on the federated ingress. Contoller does not create an ingress in any other cluster if this annotation is set on the federated ingress and IP has not been propagated. Once IP has been propagated, controller creates the ingress in all clusters.
    
    cc @kubernetes/sig-cluster-federation @madhusudancs
    63161202
Name
Last commit
Last update
..
apis Loading commit data...
client Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
deploy Loading commit data...
develop Loading commit data...
docs/api-reference Loading commit data...
manifests Loading commit data...
pkg Loading commit data...
registry/cluster Loading commit data...
Makefile Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...