Skip to content

Commit

Permalink
🌱 Update remediation_types.go (#1178)
Browse files Browse the repository at this point in the history
Update remediation_types.go
  • Loading branch information
Sayanta66 authored Mar 28, 2024
1 parent b8f6c72 commit cdf777a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
6 changes: 3 additions & 3 deletions api/v1beta1/remediation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ const (

// RemediationStrategy describes how to remediate machines.
type RemediationStrategy struct {
// Type of remediation.
// Type represents the type of the remediation strategy. At the moment, only "Reboot" is supported.
// +kubebuilder:default=Reboot
// +optional
Type RemediationType `json:"type,omitempty"`

// Sets maximum number of remediation retries.
// RetryLimit sets the maximum number of remediation retries. Zero retries if not set.
// +optional
RetryLimit int `json:"retryLimit,omitempty"`

// Sets the timeout between remediation retries.
// Timeout sets the timeout between remediation retries. It should be of the form "10m", or "40s".
Timeout *metav1.Duration `json:"timeout"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ spec:
description: Strategy field defines remediation strategy.
properties:
retryLimit:
description: Sets maximum number of remediation retries.
description: RetryLimit sets the maximum number of remediation
retries. Zero retries if not set.
type: integer
timeout:
description: Sets the timeout between remediation retries.
description: Timeout sets the timeout between remediation retries.
It should be of the form "10m", or "40s".
type: string
type:
default: Reboot
description: Type of remediation.
description: Type represents the type of the remediation strategy.
At the moment, only "Reboot" is supported.
type: string
required:
- timeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,17 @@ spec:
description: Strategy field defines remediation strategy.
properties:
retryLimit:
description: Sets maximum number of remediation retries.
description: RetryLimit sets the maximum number of remediation
retries. Zero retries if not set.
type: integer
timeout:
description: Sets the timeout between remediation retries.
description: Timeout sets the timeout between remediation
retries. It should be of the form "10m", or "40s".
type: string
type:
default: Reboot
description: Type of remediation.
description: Type represents the type of the remediation
strategy. At the moment, only "Reboot" is supported.
type: string
required:
- timeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ spec:
applied.
properties:
retryLimit:
description: Sets maximum number of remediation retries.
description: RetryLimit sets the maximum number of remediation
retries. Zero retries if not set.
type: integer
timeout:
description: Sets the timeout between remediation retries.
description: Timeout sets the timeout between remediation retries.
It should be of the form "10m", or "40s".
type: string
type:
default: Reboot
description: Type of remediation.
description: Type represents the type of the remediation strategy.
At the moment, only "Reboot" is supported.
type: string
required:
- timeout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,17 @@ spec:
to be applied.
properties:
retryLimit:
description: Sets maximum number of remediation retries.
description: RetryLimit sets the maximum number of remediation
retries. Zero retries if not set.
type: integer
timeout:
description: Sets the timeout between remediation retries.
description: Timeout sets the timeout between remediation
retries. It should be of the form "10m", or "40s".
type: string
type:
default: Reboot
description: Type of remediation.
description: Type represents the type of the remediation
strategy. At the moment, only "Reboot" is supported.
type: string
required:
- timeout
Expand Down

0 comments on commit cdf777a

Please sign in to comment.