Skip to content

Commit

Permalink
add comment to group spec for information around creation of addition…
Browse files Browse the repository at this point in the history
…al tags

Signed-off-by: Karuppiah Natarajan <karuppiahn@vmware.com>
  • Loading branch information
karuppiah7890 committed Oct 20, 2021
1 parent 3d897e1 commit dde0fc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion azure/services/groups/spec.go
Expand Up @@ -51,11 +51,13 @@ func (s *GroupSpec) OwnerResourceName() string {
func (s *GroupSpec) Parameters(existing interface{}) (interface{}, error) {
if existing != nil {
// rg already exists, nothing to update.
// Note that rg tags are updated separately using tags service
// Note that rg tags are updated separately using tags service.
return nil, nil
}
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.
Tags: converters.TagsToMap(infrav1.Build(infrav1.BuildParams{
ClusterName: s.ClusterName,
Lifecycle: infrav1.ResourceLifecycleOwned,
Expand Down

0 comments on commit dde0fc4

Please sign in to comment.