From cdf777ac933cfedf843795ea6f26bcf16b135986 Mon Sep 17 00:00:00 2001 From: Sayanta Banerjee <53281158+Sayanta66@users.noreply.github.com> Date: Fri, 29 Mar 2024 02:30:38 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20Update=20remediation=5Ftypes.go?= =?UTF-8?q?=20(#1178)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update remediation_types.go --- api/v1beta1/remediation_types.go | 6 +++--- ...frastructure.cluster.x-k8s.io_hcloudremediations.yaml | 9 ++++++--- ...ture.cluster.x-k8s.io_hcloudremediationtemplates.yaml | 9 ++++++--- ...re.cluster.x-k8s.io_hetznerbaremetalremediations.yaml | 9 ++++++--- ...er.x-k8s.io_hetznerbaremetalremediationtemplates.yaml | 9 ++++++--- 5 files changed, 27 insertions(+), 15 deletions(-) diff --git a/api/v1beta1/remediation_types.go b/api/v1beta1/remediation_types.go index ddb337b85..52a6ef691 100644 --- a/api/v1beta1/remediation_types.go +++ b/api/v1beta1/remediation_types.go @@ -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"` } diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_hcloudremediations.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_hcloudremediations.yaml index 3db054334..7c441bfac 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_hcloudremediations.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_hcloudremediations.yaml @@ -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 diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_hcloudremediationtemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_hcloudremediationtemplates.yaml index 23f9b3384..1e3625de4 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_hcloudremediationtemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_hcloudremediationtemplates.yaml @@ -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 diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerbaremetalremediations.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerbaremetalremediations.yaml index f6567f111..38c596632 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerbaremetalremediations.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerbaremetalremediations.yaml @@ -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 diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerbaremetalremediationtemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerbaremetalremediationtemplates.yaml index 297569f9f..4d8731692 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerbaremetalremediationtemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_hetznerbaremetalremediationtemplates.yaml @@ -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