Skip to content

Commit

Permalink
Merge pull request #11102 from srikiz/Fix-DO-Tag-Index-Match-Issue
Browse files Browse the repository at this point in the history
[DigitalOcean] Fix DO Tag issue
  • Loading branch information
k8s-ci-robot authored Mar 23, 2021
2 parents 0c47569 + 94d8a6f commit 1bf4fd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/model/domodel/droplets.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ func (d *DropletBuilder) Build(c *fi.ModelBuilderContext) error {

if ig.IsMaster() {
masterIndexCount++
clusterTagIndex := do.TagKubernetesClusterIndex + ":" + strconv.Itoa(masterIndexCount)
// create tag based on etcd name. etcd name is now prefixed with etcd-
// Ref: https://github.com/kubernetes/kops/commit/31f8cbd571964f19d3c31024ddba918998d29929
clusterTagIndex := do.TagKubernetesClusterIndex + ":" + "etcd-" + strconv.Itoa(masterIndexCount)
droplet.Tags = append(droplet.Tags, clusterTagIndex)
droplet.Tags = append(droplet.Tags, clusterMasterTag)
droplet.Tags = append(droplet.Tags, digitalocean.TagKubernetesInstanceGroup+":"+ig.Name)
Expand Down

0 comments on commit 1bf4fd7

Please sign in to comment.