Skip to content

Commit 429225f

Browse files
committed
Make clusterName field in ClusterResourceSetBinding required
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent 70d67eb commit 429225f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/addons/v1beta2/clusterresourcesetbinding_types.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,10 @@ type ClusterResourceSetBindingSpec struct {
200200
Bindings []*ResourceSetBinding `json:"bindings,omitempty"`
201201

202202
// clusterName is the name of the Cluster this binding applies to.
203-
// Note: this field mandatory in v1beta2.
204-
// +optional
203+
// +required
205204
// +kubebuilder:validation:MinLength=1
206205
// +kubebuilder:validation:MaxLength=63
207-
ClusterName string `json:"clusterName,omitempty"`
206+
ClusterName string `json:"clusterName"`
208207
}
209208

210209
// ANCHOR_END: ClusterResourceSetBindingSpec

0 commit comments

Comments
 (0)