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

@ -47,10 +47,14 @@ rules:
- apiGroups: [""]
resources: [secrets]
verbs: [create, get, list, patch, update, watch, delete]
#! We need to be able to CRUD pods in our namespace so we can reconcile the kube-cert-agent pods.
#! We need to be able to CRUD pods in our namespace so we can reconcile the kube-cert-agent pods.
- apiGroups: [""]
resources: [pods]
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]
resources: ["*"]
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),
pinnipedClient,
clock.RealClock{},
informers.kubeSystemNamespaceK8s.Core().V1().Pods(),
informers.installationNamespaceK8s.Core().V1().Pods(),
controllerlib.WithInformer,
),
singletonWorker,

View File

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