Skip to content

Commit

Permalink
add comments for exported WaitCondition and constants
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Sep 25, 2024
1 parent 36053da commit 843da8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/internal/kubeclient/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,24 @@ import (
"k8s.io/client-go/kubernetes"
)

// WaitCondition is an enum type for the possible wait conditions when using `kubeclient.WaitFor`.
type WaitCondition int

const (
_ WaitCondition = iota
// Ready waits until the resource becomes ready.
Ready
// Added waits until a `watch.Added` event occurs.
Added
// Modified waits until a `watch.Modified` event occurs.
Modified
// Deleted waits until a `watch.Deleted` event occurs.
Deleted
// Bookmark waits until a `watch.Bookmark` event occurs.
Bookmark
// Running waits until all containers of all pods of the resource are running.
Running
// InitContainersRunning waits until all initial containers of all pods of the resource are running.
InitContainersRunning
)

Expand Down

0 comments on commit 843da8f

Please sign in to comment.