🌱 Bump golangci-lint v2 #8243
Annotations
24 errors
lint (hack/tools)
QF1008: could remove embedded field "Registry" from selector (staticcheck)
|
lint (hack/tools)
QF1008: could remove embedded field "Registry" from selector (staticcheck)
|
lint (hack/tools)
QF1008: could remove embedded field "Registry" from selector (staticcheck)
|
lint (hack/tools)
issues found
|
lint (test)
S1016: should convert cluster (type k8s.io/apimachinery/pkg/types.NamespacedName) to sigs.k8s.io/controller-runtime/pkg/client.ObjectKey instead of using struct literal (staticcheck)
|
lint (test)
QF1008: could remove embedded field "ObjectMeta" from selector (staticcheck)
|
lint (test)
QF1008: could remove embedded field "ObjectMeta" from selector (staticcheck)
|
lint (test)
QF1004: could use bytes.ReplaceAll instead (staticcheck)
|
lint (test)
QF1004: could use bytes.ReplaceAll instead (staticcheck)
|
lint (test)
QF1004: could use bytes.ReplaceAll instead (staticcheck)
|
lint (test)
QF1004: could use bytes.ReplaceAll instead (staticcheck)
|
lint (test)
QF1004: could use bytes.ReplaceAll instead (staticcheck)
|
lint (test)
QF1004: could use bytes.ReplaceAll instead (staticcheck)
|
lint (test)
QF1004: could use bytes.ReplaceAll instead (staticcheck)
|
lint:
cmd/clusterctl/internal/test/fake_objects.go#L573
exported: exported function NewBootstrapConfigTemplate should have comment or be unexported (revive)
|
lint:
cmd/clusterctl/internal/test/fake_objects.go#L584
exported: exported function NewBootstrapConfig should have comment or be unexported (revive)
|
lint:
api/addons/v1beta1/conversion.go#L103
SA1019: out.Deprecated.V1Beta1.Conditions is deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. (staticcheck)
|
lint:
api/v1beta1/conversion.go#L152
SA1019: out.Deprecated.V1Beta1.Conditions is deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. (staticcheck)
|
lint:
api/v1beta1/conversion.go#L246
SA1019: out.Deprecated.V1Beta1.Conditions is deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. (staticcheck)
|
lint:
api/v1beta1/conversion.go#L248
SA1019: out.Deprecated.V1Beta1.FailureReason is deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. (staticcheck)
|
lint:
api/v1beta1/conversion.go#L249
SA1019: out.Deprecated.V1Beta1.FailureMessage is deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. (staticcheck)
|
lint:
api/v1beta1/conversion.go#L320
SA1019: out.Deprecated.V1Beta1.Conditions is deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. (staticcheck)
|
lint:
api/v1beta1/conversion.go#L322
SA1019: out.Deprecated.V1Beta1.AvailableReplicas is deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. (staticcheck)
|
lint:
api/v1beta1/conversion.go#L323
SA1019: out.Deprecated.V1Beta1.UnavailableReplicas is deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details. (staticcheck)
|