Skip to content

Commit

Permalink
Revert "Automated cherry pick of kubernetes#8999: feat(openstack): pr…
Browse files Browse the repository at this point in the history
…opagate cloud labels to machines"
  • Loading branch information
zetaab authored May 7, 2020
1 parent f5093e4 commit 22f6ae0
Show file tree
Hide file tree
Showing 2 changed files with 258 additions and 561 deletions.
8 changes: 1 addition & 7 deletions pkg/model/openstackmodel/servergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@ func (b *ServerGroupModelBuilder) buildInstances(c *fi.ModelBuilderContext, sg *

var igUserData *string
igMeta := make(map[string]string)
cloudTags, err := b.KopsModelContext.CloudTagsForInstanceGroup(ig)
if err != nil {
return fmt.Errorf("could not get cloud tags for instance group %s: %v", ig.Name, err)
}
for label, labelVal := range cloudTags {
igMeta[label] = labelVal
}

if ig.Spec.Role != kops.InstanceGroupRoleBastion {
// Bastion does not belong to the cluster and will not be running protokube.

Expand Down
Loading

0 comments on commit 22f6ae0

Please sign in to comment.