kubebuilder-declarative-pattern icon indicating copy to clipboard operation
kubebuilder-declarative-pattern copied to clipboard

Mocks don't match current controller-runtime package

Open steeling opened this issue 1 year ago • 4 comments

What happened:

pkg/test/mocks/manager.go isn't up to date with the controller-runtime package marked in go.mod

What you expected to happen:

pkg/test/mocks/manager.go.Manager should implement the controller-runtime Manager interface that it is supposed to mock.

How to reproduce it (as minimally and precisely as possible):

Attempt to use NewValidator

Anything else we need to know?:

var _ manager.Manager = &Manager{} line 48 in pkg/test/mocks/manager.go doesn't compile

Environment:

  • Kubernetes version (use kubectl version):
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Go version (e.g. go version):
  • Others:

steeling avatar Nov 29 '23 01:11 steeling