Skip to content

Commit

Permalink
Add missing spec descriptor for RemediationStrategy field
Browse files Browse the repository at this point in the history
Signed-off-by: Carlo Lobrano <[email protected]>
  • Loading branch information
clobrano committed May 15, 2024
1 parent 0a550e0 commit dba7b66
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/fenceagentsremediation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ type FenceAgentsRemediationSpec struct {
// that enables automatic deletion of pv-attached pods on failed nodes, "out-of-service" taint is only supported on clusters with k8s version 1.26+ or OCP/OKD version 4.13+.
// +kubebuilder:default:="ResourceDeletion"
// +kubebuilder:validation:Enum=ResourceDeletion;OutOfServiceTaint
// +operator-sdk:csv:customresourcedefinitions:type=spec
RemediationStrategy RemediationStrategyType `json:"remediationStrategy,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ spec:
node that is fenced, since they are node specific
displayName: Node Parameters
path: nodeparameters
- description: RemediationStrategy is the remediation method for unhealthy nodes.
Currently, it could be either "OutOfServiceTaint" or "ResourceDeletion".
ResourceDeletion will iterate over all pods related to the unhealthy node
and delete them. OutOfServiceTaint will add the out-of-service taint which
is a new well-known taint "node.kubernetes.io/out-of-service" that enables
automatic deletion of pv-attached pods on failed nodes, "out-of-service"
taint is only supported on clusters with k8s version 1.26+ or OCP/OKD version
4.13+.
displayName: Remediation Strategy
path: remediationStrategy
- description: RetryCount is the number of times the fencing agent will be executed
displayName: Retry Count
path: retrycount
Expand Down Expand Up @@ -130,6 +140,16 @@ spec:
node that is fenced, since they are node specific
displayName: Node Parameters
path: template.spec.nodeparameters
- description: RemediationStrategy is the remediation method for unhealthy nodes.
Currently, it could be either "OutOfServiceTaint" or "ResourceDeletion".
ResourceDeletion will iterate over all pods related to the unhealthy node
and delete them. OutOfServiceTaint will add the out-of-service taint which
is a new well-known taint "node.kubernetes.io/out-of-service" that enables
automatic deletion of pv-attached pods on failed nodes, "out-of-service"
taint is only supported on clusters with k8s version 1.26+ or OCP/OKD version
4.13+.
displayName: Remediation Strategy
path: template.spec.remediationStrategy
- description: RetryCount is the number of times the fencing agent will be executed
displayName: Retry Count
path: template.spec.retrycount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ spec:
node that is fenced, since they are node specific
displayName: Node Parameters
path: nodeparameters
- description: RemediationStrategy is the remediation method for unhealthy nodes.
Currently, it could be either "OutOfServiceTaint" or "ResourceDeletion".
ResourceDeletion will iterate over all pods related to the unhealthy node
and delete them. OutOfServiceTaint will add the out-of-service taint which
is a new well-known taint "node.kubernetes.io/out-of-service" that enables
automatic deletion of pv-attached pods on failed nodes, "out-of-service"
taint is only supported on clusters with k8s version 1.26+ or OCP/OKD version
4.13+.
displayName: Remediation Strategy
path: remediationStrategy
- description: RetryCount is the number of times the fencing agent will be executed
displayName: Retry Count
path: retrycount
Expand Down Expand Up @@ -85,6 +95,16 @@ spec:
node that is fenced, since they are node specific
displayName: Node Parameters
path: template.spec.nodeparameters
- description: RemediationStrategy is the remediation method for unhealthy nodes.
Currently, it could be either "OutOfServiceTaint" or "ResourceDeletion".
ResourceDeletion will iterate over all pods related to the unhealthy node
and delete them. OutOfServiceTaint will add the out-of-service taint which
is a new well-known taint "node.kubernetes.io/out-of-service" that enables
automatic deletion of pv-attached pods on failed nodes, "out-of-service"
taint is only supported on clusters with k8s version 1.26+ or OCP/OKD version
4.13+.
displayName: Remediation Strategy
path: template.spec.remediationStrategy
- description: RetryCount is the number of times the fencing agent will be executed
displayName: Retry Count
path: template.spec.retrycount
Expand Down

0 comments on commit dba7b66

Please sign in to comment.