Closed christopherfriedrich closed 4 years ago
Great, would you like to create a PR for this, or I could go ahead with this.
You can go ahead.
@rahulchheda wouldn't it be even better to completely switch to dynamic client / dynamic interface as of #4 to also support OpenShift?
Right, that makes a lot of sense, let me spend some time on it.
In the
webhook
struct we are currently usingkubernetes.Clientset
as type for thekubeClient
field instead of its abstractionkubernetes.Interface
Due to that testing (#2) with injecting
fake.Clientset
from https://godoc.org/k8s.io/client-go/kubernetes/fake is not possible because of a type mismatch.