Commit Graph

7 Commits (master)

Author SHA1 Message Date
Tian 3cf1e63e21
build: address all lint issues by v2 (#20804)
* fix QF1011: could omit type *os.File from declaration; it will be inferred from the right-hand side

* fix QF1012: Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...))

* fix QF1001: could apply De Morgan's law

* fix QF1003: could use tagged switch

* fix weakCond: suspicious ; nil check may not be enough, check for len (gocritic)

* fix docStub: silencing go lint doc-comment warnings is unadvised

* fix builtinShadow: shadowing of predeclared identifier: error

* fix importShadow: shadow of imported package

* fix nestingReduce: invert if cond, replace body with , move old body after the statement

* useless-break: useless break in case clause (revive)

* Clear the redundant content in golangci.yaml file
2025-05-23 17:31:28 -07:00
Predrag Rogic 9d5dfafe7c
Update pkg/addons/addons_storage_classes.go
spowelljr: reduce calling that function twice

Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
2024-01-31 01:08:36 +00:00
Predrag Rogic 32b2a5fece
workaround for "none" driver and IsPrimaryControlPlane() 2024-01-15 02:18:13 +00:00
Predrag Rogic ad7fb3992c
support kubernetes ha cluster topology in minikube 2024-01-07 21:36:17 +00:00
Piotr Resztak fc9d510096 Fix setting default StorageClass 2023-09-23 17:41:14 +02:00
Piotr Resztak e5f070edfc Add rancher storage provisioner 2023-09-23 17:41:14 +02:00
Sharif Elgamal 3063e9e720 change filenames to be more descriptive 2021-03-09 15:54:30 -08:00