Skip to content

Commit

Permalink
waitfor comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jan 24, 2024
1 parent ae2396d commit 40a89d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ func ParsePullPolicyValue(s string) PullPolicyValue {
return PullPolicyIfNotPresent
}

// WaitFor represents the wait-for configuration for a node deployment stage.
type WaitFor struct {
Node string `json:"node"` // the node that is to be waited for
State WaitForPhase `json:"state,omitempty"` // the state that the node must have completed
Expand All @@ -400,9 +401,9 @@ func (w *WaitFor) IsValid() error {
return err
}

// WaitForPhase defines the phases that nodes pass
// on deployment. They are used to define and enforce
// dependencies between nodes
// WaitForPhase defines the phases that nodes go through
// during the deployment process. They are used to define and enforce
// dependencies between nodes.
type WaitForPhase string

const (
Expand Down

0 comments on commit 40a89d8

Please sign in to comment.