Integration tests are passing ayooooooooooooooo

This commit is contained in:
Andrew Keesler 2020-09-23 12:47:04 -04:00
parent 6d047c151f
commit 0f8437bc3a
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413
3 changed files with 7 additions and 2 deletions

View File

@ -51,6 +51,10 @@ rules:
- apiGroups: [""] - apiGroups: [""]
resources: [pods] resources: [pods]
verbs: [create, get, list, patch, update, watch, delete] verbs: [create, get, list, patch, update, watch, delete]
#! We need to be able to exec into pods in our namespace so we can grab the API server's private key
- apiGroups: [""]
resources: [pods/exec]
verbs: [create]
- apiGroups: [config.pinniped.dev, idp.pinniped.dev] - apiGroups: [config.pinniped.dev, idp.pinniped.dev]
resources: ["*"] resources: ["*"]
verbs: [create, get, list, update, watch] verbs: [create, get, list, update, watch]

View File

@ -226,7 +226,7 @@ func PrepareControllers(c *Config) (func(ctx context.Context), error) {
kubecertagent.NewPodCommandExecutor(kubeConfig, k8sClient), kubecertagent.NewPodCommandExecutor(kubeConfig, k8sClient),
pinnipedClient, pinnipedClient,
clock.RealClock{}, clock.RealClock{},
informers.kubeSystemNamespaceK8s.Core().V1().Pods(), informers.installationNamespaceK8s.Core().V1().Pods(),
controllerlib.WithInformer, controllerlib.WithInformer,
), ),
singletonWorker, singletonWorker,

View File

@ -61,6 +61,7 @@ func TestKubeCertAgent(t *testing.T) {
"original agent pod len != current agent pod len: %s", "original agent pod len != current agent pod len: %s",
diff.ObjectDiff(originalAgentPods.Items, currentAgentPods.Items), diff.ObjectDiff(originalAgentPods.Items, currentAgentPods.Items),
) )
return false
} }
sortPods(currentAgentPods) sortPods(currentAgentPods)