Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apis/apps/v1/component_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,10 @@ const (
// FailedComponentPhase indicates that there are some pods of the component not in a 'Running' state.
FailedComponentPhase ComponentPhase = "Failed"
)

// component conditions
const (
ConditionTypeUpdating = "Updating"
ConditionTypeWorkloadRunning = "WorkloadRunning"
ConditionTypeHasFailure = "HasFailure"
)
7 changes: 5 additions & 2 deletions apis/apps/v1/componentdefinition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1275,8 +1275,13 @@ type ReplicasLimit struct {
}

// ComponentAvailable defines the strategies for determining whether the component is available.
//
// If both `WithPhases` and `WithRole` are specified, the component will be considered
// unavailable if any of them fail.
// If `WithProbe` is specified, `WithPhases` and `WithRole` fields are ignored.
type ComponentAvailable struct {
// Specifies the phases that the component will go through to be considered available.
// Multiple phases are separated by comma.
//
// This field is immutable once set.
//
Expand All @@ -1292,8 +1297,6 @@ type ComponentAvailable struct {

// Specifies the strategies for determining whether the component is available based on the available probe.
//
// If specified, it will take precedence over the WithPhases and WithRole fields.
//
// This field is immutable once set.
//
// +optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ spec:
withPhases:
description: |-
Specifies the phases that the component will go through to be considered available.
Multiple phases are separated by comma.


This field is immutable once set.
Expand All @@ -119,9 +120,6 @@ spec:
Specifies the strategies for determining whether the component is available based on the available probe.


If specified, it will take precedence over the WithPhases and WithRole fields.


This field is immutable once set.
properties:
condition:
Expand Down
Loading