MCPcopy
hub / github.com/helm/helm / Waiter

Interface Waiter

pkg/kube/interface.go:81–101  ·  view source on GitHub ↗

Waiter defines methods related to waiting for resource states.

Source from the content-addressed store, hash-verified

79
80// Waiter defines methods related to waiting for resource states.
81type Waiter interface {
82 // Wait waits up to the given timeout for the specified resources to be ready.
83 Wait(resources ResourceList, timeout time.Duration) error
84
85 // WaitWithJobs wait up to the given timeout for the specified resources to be ready, including jobs.
86 WaitWithJobs(resources ResourceList, timeout time.Duration) error
87
88 // WaitForDelete wait up to the given timeout for the specified resources to be deleted.
89 WaitForDelete(resources ResourceList, timeout time.Duration) error
90
91 // WatchUntilReady watches the resources given and waits until it is ready.
92 //
93 // This method is mainly for hook implementations. It watches for a resource to
94 // hit a particular milestone. The milestone depends on the Kind.
95 //
96 // For Jobs, "ready" means the Job ran to completion (exited without error).
97 // For Pods, "ready" means the Pod phase is marked "succeeded".
98 // For all other kinds, it means the kind was created or modified without
99 // error.
100 WatchUntilReady(resources ResourceList, timeout time.Duration) error
101}
102
103// InterfaceWaitOptions defines an interface that extends Interface with
104// methods that accept wait options.

Callers 25

installCRDsMethod · 0.95
performInstallMethod · 0.95
releasingUpgradeMethod · 0.95
performRollbackMethod · 0.95
parallelRepoUpdateMethod · 0.65
TestParallelDownloadToFunction · 0.65
updateChartsFunction · 0.65
performInstallMethod · 0.95
releasingUpgradeMethod · 0.95
performRollbackMethod · 0.95
TestWaitJobFunction · 0.65

Implementers 5

statusWaiterpkg/kube/statuswait.go
hookOnlyWaiterpkg/kube/statuswait.go
legacyWaiterpkg/kube/wait.go
PrintingKubeWaiterpkg/kube/fake/printer.go
FailingKubeWaiterpkg/kube/fake/failing_kube_client.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…