Skip to content
Closed
Changes from all commits
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
6 changes: 0 additions & 6 deletions hypershift-operator/controllers/nodepool/capi.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,6 @@ func (c *CAPI) reconcileMachineDeployment(ctx context.Context, log logr.Logger,
}
machineDeployment.Labels[capiv1.ClusterNameLabel] = capiClusterName

// Set defaults. These are normally set by the CAPI machinedeployment webhook.
// However, since we don't run the webhook, CAPI updates the machinedeployment
// after it has been created with defaults.
machineDeployment.Spec.MinReadySeconds = ptr.To[int32](0)

machineDeployment.Spec.ClusterName = capiClusterName
if machineDeployment.Spec.Selector.MatchLabels == nil {
machineDeployment.Spec.Selector.MatchLabels = map[string]string{}
Expand Down Expand Up @@ -880,7 +875,6 @@ func (c *CAPI) reconcileMachineSet(ctx context.Context,
machineSet.Labels[capiv1.ClusterNameLabel] = capiClusterName

resourcesName := generateName(capiClusterName, nodePool.Spec.ClusterName, nodePool.GetName())
machineSet.Spec.MinReadySeconds = int32(0)

gvk, err := apiutil.GVKForObject(machineTemplateCR, api.Scheme)
if err != nil {
Expand Down
Loading