Skip to content

Commit 92eb9b3

Browse files
committed
Make infrastructure and controlPlane required in ClusterClass
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent ea1a774 commit 92eb9b3

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

api/core/v1beta2/clusterclass_types.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ type ClusterClass struct {
8989
}
9090

9191
// ClusterClassSpec describes the desired state of the ClusterClass.
92-
// +kubebuilder:validation:MinProperties=1
9392
type ClusterClassSpec struct {
9493
// availabilityGates specifies additional conditions to include when evaluating Cluster Available condition.
9594
//
@@ -103,12 +102,12 @@ type ClusterClassSpec struct {
103102

104103
// infrastructure is a reference to a local struct that holds the details
105104
// for provisioning the infrastructure cluster for the Cluster.
106-
// +optional
105+
// +required
107106
Infrastructure InfrastructureClass `json:"infrastructure,omitempty,omitzero"`
108107

109108
// controlPlane is a reference to a local struct that holds the details
110109
// for provisioning the Control Plane for the Cluster.
111-
// +optional
110+
// +required
112111
ControlPlane ControlPlaneClass `json:"controlPlane,omitempty,omitzero"`
113112

114113
// workers describes the worker nodes for the cluster.

api/core/v1beta2/zz_generated.openapi.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.x-k8s.io_clusterclasses.yaml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)