From b22818efeba50069bf74d022d7c38604d91f10b9 Mon Sep 17 00:00:00 2001 From: Jona Date: Mon, 22 Jan 2024 08:26:04 +0100 Subject: [PATCH] make image mutable --- api/v1alpha1/ionoscloudmachine_types.go | 3 +-- .../infrastructure.cluster.x-k8s.io_ionoscloudmachines.yaml | 3 --- ...astructure.cluster.x-k8s.io_ionoscloudmachinetemplates.yaml | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/api/v1alpha1/ionoscloudmachine_types.go b/api/v1alpha1/ionoscloudmachine_types.go index a8d2631..91d4c87 100644 --- a/api/v1alpha1/ionoscloudmachine_types.go +++ b/api/v1alpha1/ionoscloudmachine_types.go @@ -63,8 +63,7 @@ type IONOSVolumeSpec struct { // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Type is immutable" Type string `json:"type"` // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Size is immutable" - Size string `json:"size"` - // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Image is immutable" + Size string `json:"size"` Image string `json:"image"` // Public SSH keys are set on the image as authorized keys for appropriate SSH login to the instance using the corresponding private key. This field may only be set in creation requests. When reading, it always returns null. SSH keys are only supported if a public Linux image is used for the volume creation. // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="SSHKeys is immutable" diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachines.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachines.yaml index 0a780a5..1936020 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachines.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachines.yaml @@ -55,9 +55,6 @@ spec: properties: image: type: string - x-kubernetes-validations: - - message: Image is immutable - rule: self == oldSelf size: type: string x-kubernetes-validations: diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachinetemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachinetemplates.yaml index 75b49ab..dfefa6b 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachinetemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachinetemplates.yaml @@ -54,9 +54,6 @@ spec: properties: image: type: string - x-kubernetes-validations: - - message: Image is immutable - rule: self == oldSelf size: type: string x-kubernetes-validations: