Skip to content

Commit 2cee2d6

Browse files
committed
feat(metrics): fix lint
Signed-off-by: rajaSahil <[email protected]>
1 parent bc715cd commit 2cee2d6

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

hack/run-machine-controller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $(dirname $0)/../machine-controller \
2626
-kubeconfig=$MC_KUBECONFIG \
2727
-worker-count=50 \
2828
-log-debug \
29-
-cluster-dns=169.254.20.10 \
29+
-cluster-dns=162.55.154.82 \
3030
-enable-profiling \
3131
-metrics-address=0.0.0.0:8080 \
3232
-health-probe-address=0.0.0.0:8085

pkg/cloudprovider/provider/anexia/types/types.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ package types
1919
import (
2020
"time"
2121

22-
"k8c.io/machine-controller/pkg/apis/cluster/common"
23-
cloudprovidererrors "k8c.io/machine-controller/pkg/cloudprovider/errors"
2422
"k8c.io/machine-controller/pkg/jsonutil"
2523
providerconfigtypes "k8c.io/machine-controller/pkg/providerconfig/types"
2624

@@ -42,11 +40,6 @@ const (
4240
MachinePoweredOn = "poweredOn"
4341
)
4442

45-
var StatusUpdateFailed = cloudprovidererrors.TerminalError{
46-
Reason: common.UpdateMachineError,
47-
Message: "Failed to update the machine status",
48-
}
49-
5043
// RawDisk specifies a single disk, with some values maybe being fetched from secrets.
5144
type RawDisk struct {
5245
Size int `json:"size"`

pkg/controller/machinedeployment/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Collector struct {
3535
updatedReplicas *prometheus.Desc
3636
}
3737

38-
// NewCollector creates new machine deployment collector for metrics collection
38+
// NewCollector creates new machine deployment collector for metrics collection.
3939
func NewCollector(ctx context.Context, client ctrlruntimeclient.Client) *Collector {
4040
return &Collector{
4141
ctx: ctx,

0 commit comments

Comments
 (0)