diff --git a/pkg/controller/worker/machines.go b/pkg/controller/worker/machines.go index 4741de6..d9f77ff 100644 --- a/pkg/controller/worker/machines.go +++ b/pkg/controller/worker/machines.go @@ -219,10 +219,8 @@ func (w *workerDelegate) getServerLabelsForMachine(machineType string, workerCon break } } - if workerConfig.ExtraServerLabels != nil { - for key, value := range workerConfig.ExtraServerLabels { - combinedLabels[key] = value - } + for key, value := range workerConfig.ExtraServerLabels { + combinedLabels[key] = value } if len(combinedLabels) == 0 { return nil, fmt.Errorf("no server labels found for machine type %s or worker config", machineType)