Skip to content

Commit

Permalink
Create resource group with custom user tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon authored and k8s-infra-cherrypick-robot committed Apr 20, 2022
1 parent fe7aa42 commit d368867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure/services/groups/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ func (s *GroupSpec) Parameters(existing interface{}) (params interface{}, err er
}
return resources.Group{
Location: to.StringPtr(s.Location),
// We create only CAPZ default tags. User defined additional tags
// are created and updated using tags service.
// User defined additional tags are created with the resource group and updated using tags service.
Tags: converters.TagsToMap(infrav1.Build(infrav1.BuildParams{
ClusterName: s.ClusterName,
Lifecycle: infrav1.ResourceLifecycleOwned,
Name: to.StringPtr(s.Name),
Role: to.StringPtr(infrav1.CommonRole),
Additional: s.AdditionalTags,
})),
}, nil
}

0 comments on commit d368867

Please sign in to comment.