MCPcopy
hub / github.com/helm/helm / FailingKubeWaiter

Struct FailingKubeWaiter

pkg/kube/fake/failing_kube_client.go:60–66  ·  view source on GitHub ↗

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`

Source from the content-addressed store, hash-verified

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`
60type 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
69func (f *FailingKubeClient) Create(resources kube.ResourceList, options ...kube.ClientCreateOption) (*kube.Result, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected