Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PR feedback
  • Loading branch information
maboehm committed Jul 11, 2025
commit c232334c8a5981b7ab6cba5ae7ff82bf8f3876c5
3 changes: 1 addition & 2 deletions pkg/apis/machine/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ type CurrentStatus struct {
type MachineStatus struct {
// Addresses of this machines. This field is only present if the MCM provider runs without a target cluster and may
// be used by clients to determine how to connect to the machine, instead of the `Node.status.addresses` field.
// +optional
Addresses []corev1.NodeAddress `json:"addresses,omitempty"`
Addresses []corev1.NodeAddress

// Conditions of this machine, same as node
Conditions []corev1.NodeCondition
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/provider/machinecontroller/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ func (c *controller) triggerCreationFlow(ctx context.Context, createMachineReque
var clone *v1alpha1.Machine
clone, err = c.updateLabels(ctx, createMachineRequest.Machine, nodeName, providerID)
if err != nil {
klog.V(2).Infof("failed to update labels and providerID for machine %q. err=%q", machine.Name, err.Error())
klog.Errorf("failed to update labels and providerID for machine %q. err=%q", machine.Name, err.Error())
}
//initialize VM if not initialized
if uninitializedMachine {
Expand All @@ -651,7 +651,7 @@ func (c *controller) triggerCreationFlow(ctx context.Context, createMachineReque
addresses = append(addresses, initAddresses...)
clone.Status.Addresses = buildAddressStatus(addresses, nodeName)
if _, err := c.controlMachineClient.Machines(clone.Namespace).UpdateStatus(ctx, clone, metav1.UpdateOptions{}); err != nil {
return 0, fmt.Errorf("failed to persist status addresses after initialization was successful: %w", err)
return machineutils.ShortRetry, fmt.Errorf("failed to persist status addresses after initialization was successful: %w", err)
}
}

Expand Down