File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ type ClusterCatalog struct {
5858
5959 // metadata is the standard object's metadata.
6060 // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
61+ // +optional
6162 metav1.ObjectMeta `json:"metadata,omitempty"`
6263
6364 // spec is a required field that defines the desired state of the ClusterCatalog.
Original file line number Diff line number Diff line change @@ -459,6 +459,7 @@ type BundleMetadata struct {
459459// RevisionStatus defines the observed state of a ClusterExtensionRevision.
460460type RevisionStatus struct {
461461 // name of the ClusterExtensionRevision resource
462+ // +required
462463 Name string `json:"name"`
463464 // conditions optionally expose Progressing and Available condition of the revision,
464465 // in case when it is not yet marked as successfully installed (condition Succeeded is not set to True).
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ type ClusterExtensionRevisionSpec struct {
5252 // +kubebuilder:default="Active"
5353 // +kubebuilder:validation:Enum=Active;Archived
5454 // +kubebuilder:validation:XValidation:rule="oldSelf == 'Active' || oldSelf == 'Archived' && oldSelf == self", message="cannot un-archive"
55+ // +optional
5556 LifecycleState ClusterExtensionRevisionLifecycleState `json:"lifecycleState,omitempty"`
5657
5758 // revision is a required, immutable sequence number representing a specific revision
@@ -116,6 +117,7 @@ type ClusterExtensionRevisionPhase struct {
116117 //
117118 // +kubebuilder:validation:MaxLength=63
118119 // +kubebuilder:validation:Pattern=`^[a-z]([-a-z0-9]*[a-z0-9])?$`
120+ // +required
119121 Name string `json:"name"`
120122
121123 // objects is a required list of all Kubernetes objects that belong to this phase.
@@ -133,6 +135,7 @@ type ClusterExtensionRevisionObject struct {
133135 //
134136 // +kubebuilder:validation:EmbeddedResource
135137 // +kubebuilder:pruning:PreserveUnknownFields
138+ // +required
136139 Object unstructured.Unstructured `json:"object"`
137140
138141 // collisionProtection controls whether the operator can adopt and modify objects
You can’t perform that action at this time.
0 commit comments