Skip to content

Commit 0cf8ef4

Browse files
committed
add explicit required tag for the spec field
1 parent 3be4861 commit 0cf8ef4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

api/v1alpha2/addressset_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type AddressSet struct {
4646
// +optional
4747
metav1.ObjectMeta `json:"metadata,omitempty"`
4848
// spec is the desired state of the AddressSet
49-
// +optional
49+
// +required
5050
Spec AddressSetSpec `json:"spec,omitempty"`
5151
// status is the observed state of the AddressSet
5252
// +optional

config/crd/bases/infrastructure.cluster.x-k8s.io_addresssets.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ spec:
5959
status:
6060
description: status is the observed state of the AddressSet
6161
type: object
62+
required:
63+
- spec
6264
type: object
6365
served: true
6466
storage: true

0 commit comments

Comments
 (0)