Skip to content

Switch agent from StatefulSet to Deployment (SURE-9419) #5818

Switch agent from StatefulSet to Deployment (SURE-9419)

Switch agent from StatefulSet to Deployment (SURE-9419) #5818

Triggered via pull request February 20, 2025 19:34
@p-sep-se
synchronize #3364
p-se:SURE-9419
Status Failure
Total duration 3m 51s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
golangci-lint: integrationtests/gitjob/controller/suite_test.go#L28
corev1 redeclared in this block
golangci-lint: integrationtests/gitjob/controller/suite_test.go#L18
other declaration of corev1
golangci-lint: integrationtests/gitjob/controller/suite_test.go#L28
"k8s.io/api/core/v1" imported as corev1 and not used (typecheck)
golangci-lint: internal/cmd/controller/gitops/reconciler/gitjob_test.go#L1040
cannot use fake.NewFakeClient(&corev1.Secret{…}) (value of type "sigs.k8s.io/controller-runtime/pkg/client".WithWatch) as testClientType value in struct literal
golangci-lint: internal/cmd/controller/gitops/reconciler/gitjob_test.go#L1145
cannot use fake.NewFakeClient(&corev1.Secret{…}, &corev1.Secret{…}) (value of type "sigs.k8s.io/controller-runtime/pkg/client".WithWatch) as testClientType value in struct literal
golangci-lint: internal/cmd/controller/gitops/reconciler/gitjob_test.go#L1215
cannot use fake.NewFakeClient() (value of type "sigs.k8s.io/controller-runtime/pkg/client".WithWatch) as testClientType value in struct literal (typecheck)
golangci-lint: internal/cmd/controller/gitops/reconciler/restrictions_test.go#L17
could not import github.com/rancher/fleet/internal/cmd/controller/gitops/reconciler (-: # github.com/rancher/fleet/internal/cmd/controller/gitops/reconciler [github.com/rancher/fleet/internal/cmd/controller/gitops/reconciler.test]
golangci-lint: internal/cmd/controller/gitops/reconciler/gitjob_test.go#L1040
cannot use fake.NewFakeClient(&corev1.Secret{…}) (value of type "sigs.k8s.io/controller-runtime/pkg/client".WithWatch) as testClientType value in struct literal
golangci-lint: internal/cmd/controller/gitops/reconciler/gitjob_test.go#L1145
cannot use fake.NewFakeClient(&corev1.Secret{…}, &corev1.Secret{…}) (value of type "sigs.k8s.io/controller-runtime/pkg/client".WithWatch) as testClientType value in struct literal
golangci-lint: internal/cmd/controller/gitops/reconciler/gitjob_test.go#L1215
cannot use fake.NewFakeClient() (value of type "sigs.k8s.io/controller-runtime/pkg/client".WithWatch) as testClientType value in struct literal) (typecheck)