Skip to content

Commit 4e5b5b7

Browse files
authored
Merge pull request #1294 from apedriza/fix-remote-labels-annotations
Fix labels and annotations propagation from pooledremotemachine to re…
2 parents 6cec878 + 3206e32 commit 4e5b5b7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

internal/controller/infrastructure/remote_machine_controller.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,12 @@ func (r *RemoteMachineController) reservePooledMachine(ctx context.Context, rm *
345345
}
346346
}
347347

348-
rm.Labels = foundPooledMachine.Labels
349-
rm.Annotations = foundPooledMachine.Annotations
348+
for k, v := range foundPooledMachine.Labels {
349+
rm.Labels[k] = v
350+
}
351+
for k, v := range foundPooledMachine.Annotations {
352+
rm.Annotations[k] = v
353+
}
350354
rm.Spec.Address = foundPooledMachine.Spec.Machine.Address
351355
rm.Spec.Port = foundPooledMachine.Spec.Machine.Port
352356
rm.Spec.User = foundPooledMachine.Spec.Machine.User

0 commit comments

Comments
 (0)