Generics testing #4
Annotations
12 errors
lint (hack/tools)
golangci-lint exit with code 5
|
lint (test)
golangci-lint exit with code 3
|
lint:
controllers/alias.go#L30
could not import sigs.k8s.io/cluster-api/internal/controllers/machine (-: # sigs.k8s.io/cluster-api/internal/controllers/machine
|
lint:
internal/controllers/machine/machine_controller.go#L863
undefined: controller.ControllerAdapter
|
lint:
internal/controllers/machine/machine_controller.go#L865
undefined: handler.EnqueueRequestsFromTypedMapFuncFunc) (typecheck)
|
lint:
controllers/alias.go#L34
could not import sigs.k8s.io/cluster-api/internal/controllers/topology/cluster (-: # sigs.k8s.io/cluster-api/internal/controllers/topology/cluster
|
lint:
internal/controllers/topology/cluster/cluster_controller.go#L303
cannot use predicates.ResourceIsTopologyOwned(ctrl.LoggerFrom(ctx), &clusterv1.Cluster{}) (value of type predicate.TypedPredicate[*"sigs.k8s.io/cluster-api/api/v1beta1".Cluster]) as predicate.TypedPredicate["sigs.k8s.io/controller-runtime/pkg/client".Object] value in argument to r.externalTracker.Watch: predicate.TypedPredicate[*"sigs.k8s.io/cluster-api/api/v1beta1".Cluster] does not implement predicate.TypedPredicate["sigs.k8s.io/controller-runtime/pkg/client".Object] (wrong type for method Create)
|
lint:
internal/controllers/topology/cluster/cluster_controller.go#L309
cannot use handler.TypedEnqueueRequestForOwner[*unstructured.Unstructured](r.Client.Scheme(), r.Client.RESTMapper(), &clusterv1.Cluster{}) (value of type handler.TypedEventHandler[*unstructured.Unstructured]) as handler.EventHandler value in argument to r.externalTracker.Watch: handler.TypedEventHandler[*unstructured.Unstructured] does not implement handler.EventHandler (wrong type for method Create)
|
lint:
internal/controllers/topology/cluster/cluster_controller.go#L311
cannot use predicates.ResourceIsTopologyOwned(ctrl.LoggerFrom(ctx), &unstructured.Unstructured{}) (value of type predicate.TypedPredicate[*unstructured.Unstructured]) as predicate.TypedPredicate["sigs.k8s.io/controller-runtime/pkg/client".Object] value in argument to r.externalTracker.Watch: predicate.TypedPredicate[*unstructured.Unstructured] does not implement predicate.TypedPredicate["sigs.k8s.io/controller-runtime/pkg/client".Object] (wrong type for method Create)
|
lint:
exp/controllers/alias.go#L27
could not import sigs.k8s.io/cluster-api/exp/internal/controllers (-: # sigs.k8s.io/cluster-api/exp/internal/controllers
|
lint:
exp/internal/controllers/machinepool_controller.go#L335
undefined: controller.ControllerAdapter
|
lint:
exp/internal/controllers/machinepool_controller.go#L337
cannot use r.nodeToMachinePool (value of type func(ctx context.Context, node *"k8s.io/api/core/v1".Node) []reconcile.Request) as handler.TypedMapFunc[client.Object] value in argument to handler.EnqueueRequestsFromMapFunc) (typecheck)
|