From b930528078f60477a4b08c61941012928a2d6e56 Mon Sep 17 00:00:00 2001 From: Rahul Ganesh Date: Thu, 12 Oct 2023 23:11:15 +0000 Subject: [PATCH] Make OSImage URL optional field in machine config Signed-off-by: Rahul Ganesh --- ...where.eks.amazonaws.com_tinkerbellmachineconfigs.yaml | 1 - pkg/api/v1alpha1/tinkerbellmachineconfig_types.go | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/crd/bases/anywhere.eks.amazonaws.com_tinkerbellmachineconfigs.yaml b/config/crd/bases/anywhere.eks.amazonaws.com_tinkerbellmachineconfigs.yaml index 0dca96ecb00cd..4ca5c042e648b 100644 --- a/config/crd/bases/anywhere.eks.amazonaws.com_tinkerbellmachineconfigs.yaml +++ b/config/crd/bases/anywhere.eks.amazonaws.com_tinkerbellmachineconfigs.yaml @@ -155,7 +155,6 @@ spec: required: - hardwareSelector - osFamily - - osImageURL type: object status: description: TinkerbellMachineConfigStatus defines the observed state diff --git a/pkg/api/v1alpha1/tinkerbellmachineconfig_types.go b/pkg/api/v1alpha1/tinkerbellmachineconfig_types.go index e81649705938d..f9e89b5b848d7 100644 --- a/pkg/api/v1alpha1/tinkerbellmachineconfig_types.go +++ b/pkg/api/v1alpha1/tinkerbellmachineconfig_types.go @@ -10,10 +10,11 @@ import ( // TinkerbellMachineConfigSpec defines the desired state of TinkerbellMachineConfig. type TinkerbellMachineConfigSpec struct { - HardwareSelector HardwareSelector `json:"hardwareSelector"` - TemplateRef Ref `json:"templateRef,omitempty"` - OSFamily OSFamily `json:"osFamily"` - OSImageURL string `json:"osImageURL"` + HardwareSelector HardwareSelector `json:"hardwareSelector"` + TemplateRef Ref `json:"templateRef,omitempty"` + OSFamily OSFamily `json:"osFamily"` + //+optional + OSImageURL string `json:"osImageURL,omitempty"` Users []UserConfiguration `json:"users,omitempty"` HostOSConfiguration *HostOSConfiguration `json:"hostOSConfiguration,omitempty"` }