Skip to content

Commit 3be4861

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

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

api/v1alpha2/firewallrule_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type FirewallRule struct {
8888
metav1.ObjectMeta `json:"metadata,omitempty"`
8989

9090
// spec is the desired state of the FirewallRule.
91-
// +optional
91+
// +required
9292
Spec FirewallRuleSpec `json:"spec,omitempty"`
9393

9494
// status is the observed state of the FirewallRule.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ spec:
136136
status:
137137
description: status is the observed state of the FirewallRule.
138138
type: object
139+
required:
140+
- spec
139141
type: object
140142
served: true
141143
storage: true

0 commit comments

Comments
 (0)