Skip to content

Commit

Permalink
Merge pull request #207 from mshitrit/mandatory-template-fields
Browse files Browse the repository at this point in the history
Make template spec mandatory
  • Loading branch information
mshitrit authored Jun 18, 2024
2 parents a61f73c + 768e0be commit 1569423
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 1569423

Please sign in to comment.