From 0260033747cd2ead54623ed23e55f50e33d451f2 Mon Sep 17 00:00:00 2001 From: xiajunhao Date: Mon, 8 Jan 2024 11:26:43 +0800 Subject: [PATCH] fix(tide): fix fields typo --- .../tide.katalyst.kubewharf.io_tidenodepools.yaml | 4 ++-- pkg/apis/tide/v1alpha1/types.go | 6 +++--- pkg/apis/tide/v1alpha1/zz_generated.deepcopy.go | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config/crd/bases/tide.katalyst.kubewharf.io_tidenodepools.yaml b/config/crd/bases/tide.katalyst.kubewharf.io_tidenodepools.yaml index 107fd39..8ff6726 100644 --- a/config/crd/bases/tide.katalyst.kubewharf.io_tidenodepools.yaml +++ b/config/crd/bases/tide.katalyst.kubewharf.io_tidenodepools.yaml @@ -99,7 +99,7 @@ spec: - key - value type: object - reverse: + reserve: properties: offline: anyOf: @@ -129,7 +129,7 @@ spec: status: description: TideNodePoolStatus defines the observed state of TideNodePool properties: - reverseNodes: + reserveNodes: description: 'INSERT ADDITIONAL STATUS FIELD - define observed state of cluster Important: Run "make" to regenerate code after modifying this file' diff --git a/pkg/apis/tide/v1alpha1/types.go b/pkg/apis/tide/v1alpha1/types.go index 34bb126..de8644c 100644 --- a/pkg/apis/tide/v1alpha1/types.go +++ b/pkg/apis/tide/v1alpha1/types.go @@ -57,14 +57,14 @@ type NodeConfigs struct { // +optional TideLabel *LabelOption `json:"tideLabel,omitempty"` // +optional - Reverse ReverseOptions `json:"reverse,omitempty"` + Reserve ReserveOptions `json:"reserve,omitempty"` } type PodSelector struct { MatchLabels map[string]string `json:"matchLabels,omitempty"` } -type ReverseOptions struct { +type ReserveOptions struct { // +optional Online *intstr.IntOrString `json:"online,omitempty"` // +optional @@ -87,7 +87,7 @@ type TideNodePoolStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file // +optional - ReserveNodes ReserveNodes `json:"reverseNodes,omitempty"` + ReserveNodes ReserveNodes `json:"reserveNodes,omitempty"` // +optional TideNodes TideNodes `json:"tideNodes,omitempty"` } diff --git a/pkg/apis/tide/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/tide/v1alpha1/zz_generated.deepcopy.go index c3ed75e..76bd944 100644 --- a/pkg/apis/tide/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/tide/v1alpha1/zz_generated.deepcopy.go @@ -84,7 +84,7 @@ func (in *NodeConfigs) DeepCopyInto(out *NodeConfigs) { *out = new(LabelOption) **out = **in } - in.Reverse.DeepCopyInto(&out.Reverse) + in.Reserve.DeepCopyInto(&out.Reserve) return } @@ -148,7 +148,7 @@ func (in *ReserveNodes) DeepCopy() *ReserveNodes { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReverseOptions) DeepCopyInto(out *ReverseOptions) { +func (in *ReserveOptions) DeepCopyInto(out *ReserveOptions) { *out = *in if in.Online != nil { in, out := &in.Online, &out.Online @@ -163,12 +163,12 @@ func (in *ReverseOptions) DeepCopyInto(out *ReverseOptions) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReverseOptions. -func (in *ReverseOptions) DeepCopy() *ReverseOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReserveOptions. +func (in *ReserveOptions) DeepCopy() *ReserveOptions { if in == nil { return nil } - out := new(ReverseOptions) + out := new(ReserveOptions) in.DeepCopyInto(out) return out }