ContainerImage.Pinniped/internal/controller/kubecertagent
Matt Moyer 24c8bdef44
Add a test to verify that the kube-cert-agent recovers when a pod becomes unhealthy.
This required some small adjustments to the produciton code to make it more feasible to test.

The new test takes an existing agent pod and terminates the `sleep` process, causing the pod to go into an `Error` status.
The agent controllers _should_ respond to this by deleting and recreating that failed pod, but the current code just gets stuck.

This is meant to replicate the situation when a cluster is suspended and resumed, which also causes the agent pod to be in this terminal error state.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2021-04-21 16:48:00 -05:00
..
testdata WIP: start replacing the kubecertauthority pkg with a new controller 2020-09-22 17:45:20 -07:00
annotater_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
annotater.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
creater_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
creater.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
deleter_test.go Rename CredentialIssuerConfig to CredentialIssuer. 2020-11-02 17:39:42 -06:00
deleter.go Reduce log spam 2020-11-10 10:22:27 -05:00
execer_test.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
execer.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00
kubecertagent_test.go Add a test to verify that the kube-cert-agent recovers when a pod becomes unhealthy. 2021-04-21 16:48:00 -05:00
kubecertagent.go Add a test to verify that the kube-cert-agent recovers when a pod becomes unhealthy. 2021-04-21 16:48:00 -05:00
pod_command_executor.go Changing references from 1.19 to 1.20 2021-01-07 15:25:47 -08:00