FailingKubeWaiter implements kube.Waiter for testing purposes. It also has additional errors you can set to fail different functions, otherwise it delegates all its calls to `PrintingKubeWaiter`
| 58 | // FailingKubeWaiter implements kube.Waiter for testing purposes. |
| 59 | // It also has additional errors you can set to fail different functions, otherwise it delegates all its calls to `PrintingKubeWaiter` |
| 60 | type FailingKubeWaiter struct { |
| 61 | *PrintingKubeWaiter |
| 62 | waitError error |
| 63 | waitForDeleteError error |
| 64 | watchUntilReadyError error |
| 65 | waitDuration time.Duration |
| 66 | } |
| 67 | |
| 68 | // Create returns the configured error if set or prints |
| 69 | func (f *FailingKubeClient) Create(resources kube.ResourceList, options ...kube.ClientCreateOption) (*kube.Result, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected