Skip to content

Commit

Permalink
add support for varcheck linter
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Jun 16, 2022
1 parent 08fc101 commit 656738b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ linters:
# https://github.com/golangci/golangci-lint/issues/1841
# - deadcode
# - structcheck
# - varcheck
- ineffassign
- staticcheck
- unused
- tenv
- unused
- varcheck

linters-settings: # please keep this alphabetized
staticcheck:
Expand Down
2 changes: 0 additions & 2 deletions protokube/pkg/protokube/aws_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import (
"k8s.io/kops/upup/pkg/fi/cloudup/awsup"
)

var devices = []string{"/dev/xvdu", "/dev/xvdv", "/dev/xvdx", "/dev/xvdx", "/dev/xvdy", "/dev/xvdz"}

// AWSCloudProvider defines the AWS cloud provider implementation
type AWSCloudProvider struct {
mutex sync.Mutex
Expand Down
1 change: 0 additions & 1 deletion protokube/pkg/protokube/do_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const (
dropletIDMetadataURL = "http://169.254.169.254/metadata/v1/id"
dropletIDMetadataTags = "http://169.254.169.254/metadata/v1/tags"
dropletInternalIPMetadataURL = "http://169.254.169.254/metadata/v1/interfaces/private/0/ipv4/address"
localDevicePrefix = "/dev/disk/by-id/scsi-0DO_Volume_"
)

// TokenSource implements oauth2.TokenSource
Expand Down
1 change: 0 additions & 1 deletion upup/pkg/fi/nodeup/nodetasks/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const (

containerdService = "containerd.service"
dockerService = "docker.service"
kubeletService = "kubelet.service"
protokubeService = "protokube.service"
)

Expand Down

0 comments on commit 656738b

Please sign in to comment.