Skip to content

Allow for manual KCP and etcd orchestration #89

Allow for manual KCP and etcd orchestration

Allow for manual KCP and etcd orchestration #89

Triggered via pull request August 15, 2023 22:17
Status Failure
Total duration 7m 21s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
lint: cmd/clusterctl/client/move_test.go#L279
cannot use &fakeObjectMover{} (value of type *fakeObjectMover) as "sigs.k8s.io/cluster-api/cmd/clusterctl/client/cluster".ObjectMover value in argument to newFakeCluster(cluster.Kubeconfig{…}, config1).WithProviderInventory(core.Name(), core.Type(), "v1.0.0", "cluster-api-system").WithProviderInventory(infra.Name(), infra.Type(), "v2.0.0", "infra-system").WithObjectMover: *fakeObjectMover does not implement "sigs.k8s.io/cluster-api/cmd/clusterctl/client/cluster".ObjectMover (wrong type for method FromDirectory)
lint: internal/controllers/cluster/cluster_controller_test.go#L999
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: internal/controllers/cluster/cluster_controller_test.go#L1042
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: internal/controllers/cluster/cluster_controller_test.go#L1127
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: internal/controllers/cluster/cluster_controller_test.go#L1174
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: controlplane/kubeadm/internal/controllers/controller_test.go#L2171
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: controlplane/kubeadm/internal/controllers/controller_test.go#L2172
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: controlplane/kubeadm/internal/controllers/controller_test.go#L2258
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: controlplane/kubeadm/internal/controllers/controller_test.go#L2295
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: controlplane/kubeadm/internal/controllers/controller_test.go#L2296
Error return value of `unstructured.SetNestedField` is not checked (errcheck)
lint: util/secret/consts.go#L55
exported: exported const ManagedExternalEtcdCA should have comment (or a comment on this block) or be unexported (revive)
lint: bootstrap/kubeadm/internal/bottlerocket/controlplane_init.go#L1
package-comments: package comment should be of the form "Package bottlerocket ..." (revive)
lint: bootstrap/kubeadm/internal/bottlerocket/bottlerocket.go#L25
exported: type name will be used as bottlerocket.BottlerocketConfig by other packages, and that stutters; consider calling this Config (revive)
lint: bootstrap/kubeadm/internal/bottlerocket/bottlerocket.go#L44
exported: type name will be used as bottlerocket.BottlerocketSettingsInput by other packages, and that stutters; consider calling this SettingsInput (revive)
lint: bootstrap/kubeadm/internal/bottlerocket/bootstrap.go#L1
package-comments: package comment should be of the form "Package bottlerocket ..." (revive)
lint: controllers/external/util.go#L248
exported: exported function GetExternalEtcdEndpoints should have comment or be unexported (revive)
lint: controllers/external/util.go#L258
exported: exported function IsExternalEtcdUpgrading should have comment or be unexported (revive)
lint: controllers/external/util.go#L273
exported: exported function SetKCPUpdateCompleteAnnotationOnEtcdadmCluster should have comment or be unexported (revive)
lint: controlplane/kubeadm/internal/workload_cluster_etcd.go#L113
exported: exported method Workload.UpdateExternalEtcdEndpointsInKubeadmConfigMap should have comment or be unexported (revive)
lint: bootstrap/kubeadm/internal/controllers/kubeadmconfig_controller.go#L74
exported: exported const RegistryUsername should have comment (or a comment on this block) or be unexported (revive)