Skip to content

Commit

Permalink
Merge pull request #2240 from CecileRobertMichon/race-tags
Browse files Browse the repository at this point in the history
Fix race condition when creating resource group with custom user tags
  • Loading branch information
k8s-ci-robot authored Apr 20, 2022
2 parents b06af49 + cb77199 commit 90cba6b
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 90cba6b

Please sign in to comment.