Skip to content

Commit

Permalink
Merge pull request #72768 from rmohr/omitempty-datasource
Browse files Browse the repository at this point in the history
Set omitempty on DataSource for snapshot on PVCs

Kubernetes-commit: 1c651865601c47b95ebb5babb67a5014808d6062
  • Loading branch information
k8s-publishing-bot committed Jan 26, 2019
2 parents ae57edb + c140a59 commit ccdd560
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
74 changes: 37 additions & 37 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ type PersistentVolumeClaimSpec struct {
// In the future, we plan to support more data source types and the behavior
// of the provisioner may change.
// +optional
DataSource *TypedLocalObjectReference `json:"dataSource" protobuf:"bytes,7,opt,name=dataSource"`
DataSource *TypedLocalObjectReference `json:"dataSource,omitempty" protobuf:"bytes,7,opt,name=dataSource"`
}

// PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type
Expand Down

0 comments on commit ccdd560

Please sign in to comment.