Skip to content

Commit

Permalink
Revert the machine deployment status (#6605)
Browse files Browse the repository at this point in the history
* patch machine deployment status
Signed-off-by: Moath Qasim <moad.qassem@gmail.com>

Signed-off-by: Moath Qasim <moad.qassem@gmail.com>

* revert machine deployment status updates for the edge provider
Signed-off-by: Moath Qasim <moad.qassem@gmail.com>

Signed-off-by: Moath Qasim <moad.qassem@gmail.com>

---------

Signed-off-by: Moath Qasim <moad.qassem@gmail.com>
  • Loading branch information
moadqassem committed Mar 12, 2024
1 parent 1e5fa71 commit 79f53db
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions modules/api/pkg/resources/machine/machinedeployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/rand"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/utils/ptr"
)

const (
Expand Down Expand Up @@ -162,18 +161,6 @@ func Deployment(ctx context.Context, c *kubermaticv1.Cluster, nd *apiv1.NodeDepl
return nil, err
}

if string(config.CloudProvider) == string(kubermaticv1.EdgeCloudProvider) {
md.Spec.Replicas = ptr.To(int32(1))

md.Status = clusterv1alpha1.MachineDeploymentStatus{
ObservedGeneration: 1,
Replicas: 1,
UpdatedReplicas: 1,
ReadyReplicas: 1,
AvailableReplicas: 1,
}
}

err = getProviderOS(config, nd)
if err != nil {
return nil, err
Expand Down

0 comments on commit 79f53db

Please sign in to comment.