Skip to content

Commit

Permalink
feat(metrics): fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: rajaSahil <[email protected]>
  • Loading branch information
rajaSahil committed Jan 12, 2025
1 parent bc715cd commit 1c8ac03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions pkg/cloudprovider/provider/anexia/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ package types
import (
"time"

"k8c.io/machine-controller/pkg/apis/cluster/common"
cloudprovidererrors "k8c.io/machine-controller/pkg/cloudprovider/errors"
"k8c.io/machine-controller/pkg/jsonutil"
providerconfigtypes "k8c.io/machine-controller/pkg/providerconfig/types"

Expand All @@ -42,11 +40,6 @@ const (
MachinePoweredOn = "poweredOn"
)

var StatusUpdateFailed = cloudprovidererrors.TerminalError{
Reason: common.UpdateMachineError,
Message: "Failed to update the machine status",
}

// RawDisk specifies a single disk, with some values maybe being fetched from secrets.
type RawDisk struct {
Size int `json:"size"`
Expand Down
5 changes: 3 additions & 2 deletions pkg/controller/machinedeployment/metrics.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019 The Machine Controller Authors.
Copyright 2025 The Machine Controller Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -18,6 +18,7 @@ package machinedeployment

import (
"context"

"github.com/prometheus/client_golang/prometheus"
"k8c.io/machine-controller/pkg/apis/cluster/v1alpha1"
ctrlruntimeclient "sigs.k8s.io/controller-runtime/pkg/client"
Expand All @@ -35,7 +36,7 @@ type Collector struct {
updatedReplicas *prometheus.Desc
}

// NewCollector creates new machine deployment collector for metrics collection
// NewCollector creates new machine deployment collector for metrics collection.
func NewCollector(ctx context.Context, client ctrlruntimeclient.Client) *Collector {
return &Collector{
ctx: ctx,
Expand Down

0 comments on commit 1c8ac03

Please sign in to comment.