Skip to content

Commit 2b08f30

Browse files
Merge branch 'main' into force-delete-buckets
2 parents f3f9316 + e6c4a61 commit 2b08f30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/controller/linodemachine_controller_helpers.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,12 @@ func getTags(machineScope *scope.MachineScope) ([]string, error) {
10071007

10081008
// add unique tags from the LinodeMachine linode-vm-tags annotation
10091009
machineTagSet := map[string]struct{}{}
1010+
1011+
// TODO: remove post-removal .Spec.Tags removal
1012+
for _, tag := range machineScope.LinodeMachine.Spec.Tags { //nolint:staticcheck // don't complain until we remove .Spec.Tags
1013+
machineTagSet[tag] = struct{}{}
1014+
}
1015+
10101016
if _, ok := machineScope.LinodeMachine.Annotations[machineTagsAnnotation]; ok {
10111017
var machineTags []string
10121018
if err := json.Unmarshal([]byte(machineScope.LinodeMachine.Annotations[machineTagsAnnotation]), &machineTags); err != nil {

0 commit comments

Comments
 (0)