Skip to content

Commit

Permalink
fix: add default managementState as Removed to allow new components t…
Browse files Browse the repository at this point in the history
…o show up in old DSCs, fixes RHOAIENG-14194

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>
  • Loading branch information
dhirajsb committed Oct 9, 2024
1 parent db0fa50 commit 99c1e85
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Component struct {
// or if it is installed, the operator will try to remove it
//
// +kubebuilder:validation:Enum=Managed;Removed
// +kubebuilder:default=Removed
ManagementState operatorv1.ManagementState `json:"managementState,omitempty"`
// Add any other common fields across components below

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -125,6 +126,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -173,6 +175,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -232,6 +235,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -336,6 +340,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -384,6 +389,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -430,6 +436,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -490,6 +497,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -536,6 +544,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -582,6 +591,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down Expand Up @@ -628,6 +638,7 @@ spec:
type: array
type: object
managementState:
default: Removed
description: |-
Set to one of the following values:
Expand Down
2 changes: 1 addition & 1 deletion docs/api-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ _Appears in:_

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `managementState` _[ManagementState](#managementstate)_ | Set to one of the following values:<br /><br />- "Managed" : the operator is actively managing the component and trying to keep it active.<br /> It will only upgrade the component if it is safe to do so<br /><br />- "Removed" : the operator is actively managing the component and will not install it,<br /> or if it is installed, the operator will try to remove it | | Enum: [Managed Removed] <br /> |
| `managementState` _[ManagementState](#managementstate)_ | Set to one of the following values:<br /><br />- "Managed" : the operator is actively managing the component and trying to keep it active.<br /> It will only upgrade the component if it is safe to do so<br /><br />- "Removed" : the operator is actively managing the component and will not install it,<br /> or if it is installed, the operator will try to remove it | Removed | Enum: [Managed Removed] <br /> |
| `devFlags` _[DevFlags](#devflags)_ | Add developer fields | | |


Expand Down

0 comments on commit 99c1e85

Please sign in to comment.