normalized omitempty across volumes for all versions

This commit is contained in:
markturansky
2015-05-25 13:10:14 -04:00
parent f7ede60045
commit e15fd2b0e7
4 changed files with 44 additions and 46 deletions

View File

@@ -228,7 +228,7 @@ type VolumeSource struct {
type PersistentVolumeClaimVolumeSource struct {
// ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume
ClaimName string `json:"claimName,omitempty" description:"the name of the claim in the same namespace to be mounted as a volume"`
ClaimName string `json:"claimName" description:"the name of the claim in the same namespace to be mounted as a volume"`
// Optional: Defaults to false (read/write). ReadOnly here
// will force the ReadOnly setting in VolumeMounts
ReadOnly bool `json:"readOnly,omitempty" description:"mount volume as read-only when true; default false"`