Skip to content

Commit

Permalink
Merge pull request #1957 from munnerz/fixup-req-status
Browse files Browse the repository at this point in the history
Add omitempty to spec and status fields
  • Loading branch information
jetstack-bot committed Aug 2, 2019
2 parents c67c53c + 987967c commit 7575e26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions deploy/manifests/00-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1796,8 +1796,6 @@ spec:
type: object
required:
- metadata
- spec
- status
type: object
versions:
- name: v1alpha1
Expand Down Expand Up @@ -7324,8 +7322,6 @@ spec:
type: object
required:
- metadata
- spec
- status
type: object
versions:
- name: v1alpha1
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/certmanager/v1alpha1/types_challenge.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ type Challenge struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`

Spec ChallengeSpec `json:"spec"`
Status ChallengeStatus `json:"status"`
Spec ChallengeSpec `json:"spec,omitempty"`
Status ChallengeStatus `json:"status,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/certmanager/v1alpha1/types_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ type Order struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`

Spec OrderSpec `json:"spec"`
Status OrderStatus `json:"status"`
Spec OrderSpec `json:"spec,omitempty"`
Status OrderStatus `json:"status,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down

0 comments on commit 7575e26

Please sign in to comment.