Skip to content

Commit

Permalink
making spec mandatory
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Shitrit <[email protected]>
  • Loading branch information
mshitrit committed Jun 5, 2024
1 parent 6549bf0 commit 768e0be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/selfnoderemediationtemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ type SelfNodeRemediationTemplateStatus struct {
type SelfNodeRemediationTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec SelfNodeRemediationTemplateSpec `json:"spec,omitempty"`
// +required
Spec SelfNodeRemediationTemplateSpec `json:"spec"`
Status SelfNodeRemediationTemplateStatus `json:"status,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ spec:
description: SelfNodeRemediationTemplateStatus defines the observed state
of SelfNodeRemediationTemplate
type: object
required:
- spec
type: object
served: true
storage: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ spec:
description: SelfNodeRemediationTemplateStatus defines the observed state
of SelfNodeRemediationTemplate
type: object
required:
- spec
type: object
served: true
storage: true
Expand Down

0 comments on commit 768e0be

Please sign in to comment.