diff --git a/api/v1alpha1/contentlibrary_types.go b/api/v1alpha1/contentlibrary_types.go index 058a707..dbff6a2 100644 --- a/api/v1alpha1/contentlibrary_types.go +++ b/api/v1alpha1/contentlibrary_types.go @@ -100,12 +100,6 @@ type PublishInfo struct { URL string `json:"URL"` } -// StateInfo provides the information about the state of a content library. -type StateInfo struct { - // State indicates the state of this library. - State State `json:"state"` -} - // ContentLibrarySpec defines the desired state of a ContentLibrary. type ContentLibrarySpec struct { // UUID is the identifier which uniquely identifies the library in vCenter. This field is immutable. @@ -166,9 +160,10 @@ type ContentLibraryStatus struct { // +optional SecurityPolicyID string `json:"securityPolicyID,omitempty"` - // StateInfo provides the state information of this library. + // State indicates the state of this library. + // +kubebuilder:validation:Enum=Active;InMaintenance // +optional - StateInfo *StateInfo `json:"stateInfo,omitempty"` + State State `json:"state,omitempty"` // ServerGUID indicates the unique identifier of the vCenter server where the library exists. // +optional diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 4f4f35c..f29c83c 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -619,11 +619,6 @@ func (in *ContentLibraryStatus) DeepCopyInto(out *ContentLibraryStatus) { *out = new(SubscriptionInfo) **out = **in } - if in.StateInfo != nil { - in, out := &in.StateInfo, &out.StateInfo - *out = new(StateInfo) - **out = **in - } in.CreationTime.DeepCopyInto(&out.CreationTime) in.LastModifiedTime.DeepCopyInto(&out.LastModifiedTime) in.LastSyncTime.DeepCopyInto(&out.LastSyncTime) @@ -732,21 +727,6 @@ func (in *PublishInfo) DeepCopy() *PublishInfo { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StateInfo) DeepCopyInto(out *StateInfo) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StateInfo. -func (in *StateInfo) DeepCopy() *StateInfo { - if in == nil { - return nil - } - out := new(StateInfo) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StorageBacking) DeepCopyInto(out *StorageBacking) { *out = *in