From 2721bc88dc9ec5568210e55ab9e4cffcd178aa30 Mon Sep 17 00:00:00 2001 From: Jan Jansen Date: Fri, 10 Nov 2023 13:59:54 +0100 Subject: [PATCH] a --- api/v1alpha1/ionoscloudmachine_types.go | 6 ++---- .../infrastructure.cluster.x-k8s.io_ionoscloudmachines.yaml | 3 --- ...ructure.cluster.x-k8s.io_ionoscloudmachinetemplates.yaml | 3 --- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/api/v1alpha1/ionoscloudmachine_types.go b/api/v1alpha1/ionoscloudmachine_types.go index dfb5949..3902436 100644 --- a/api/v1alpha1/ionoscloudmachine_types.go +++ b/api/v1alpha1/ionoscloudmachine_types.go @@ -59,10 +59,8 @@ type IONOSCloudMachineSpec struct { // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="IP is immutable" IP *string `json:"ip,omitempty"` // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ProviderID is immutable" - ProviderID string `json:"providerID,omitempty"` - // +listType=map - // +listMapKey=lanRef.name - Nics []IONOSNicSpec `json:"nics,omitempty"` + ProviderID string `json:"providerID,omitempty"` + Nics []IONOSNicSpec `json:"nics,omitempty"` } // +kubebuilder:validation:XValidation:rule="!has(oldSelf.sshKeys) || has(self.sshKeys)", message="SSHKeys is required once set" 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 49ee716..de034d5 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachines.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachines.yaml @@ -120,9 +120,6 @@ spec: - lanRef type: object type: array - x-kubernetes-list-map-keys: - - lanRef.name - x-kubernetes-list-type: map providerID: 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 4e5e895..6d54199 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachinetemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_ionoscloudmachinetemplates.yaml @@ -131,9 +131,6 @@ spec: - lanRef type: object type: array - x-kubernetes-list-map-keys: - - lanRef.name - x-kubernetes-list-type: map providerID: type: string x-kubernetes-validations: