Integration tests are passing ayooooooooooooooo
This commit is contained in:
parent
6d047c151f
commit
0f8437bc3a
@ -47,10 +47,14 @@ rules:
|
|||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: [secrets]
|
resources: [secrets]
|
||||||
verbs: [create, get, list, patch, update, watch, delete]
|
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: [""]
|
- 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]
|
||||||
|
@ -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,
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user