Skip to content

Commit

Permalink
Merge pull request #11309 from hakman/automated-cherry-pick-of-#11305…
Browse files Browse the repository at this point in the history
…-upstream-release-1.20

Automated cherry pick of #11305: Update seeds.go
  • Loading branch information
k8s-ci-robot committed Apr 24, 2021
2 parents 82e71db + 5903a5f commit ccebe0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protokube/pkg/gossip/openstack/seeds.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ func (p *SeedProvider) GetSeeds() ([]string, error) {

for _, server := range s {
if clusterName, ok := server.Metadata[openstack.TagClusterName]; ok {
// verify that the instance is from the same cluster
if clusterName != p.clusterName {
continue
}

var err error
// find kopsNetwork from metadata, fallback to clustername
ifName := clusterName
Expand Down

0 comments on commit ccebe0e

Please sign in to comment.