diff options
| author | Paul Morie <pmorie@redhat.com> | 2017-02-22 14:21:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-22 14:21:41 -0500 |
| commit | e7d56c153175166779b69ee2b4b5f9516eba57ea (patch) | |
| tree | 81ba0f93b610496cf2ce525105bf96fb0e7efbc1 | |
| parent | 747e4721dd9ed070bac62e1e349d8d393c269831 (diff) | |
| parent | a876d97a574350c6384087ed7af72cba1ee6d767 (diff) | |
Merge pull request #387 from jpeeler/master
Update all-in-one proposal to reflect reality
| -rw-r--r-- | contributors/design-proposals/all-in-one-volume.md | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/contributors/design-proposals/all-in-one-volume.md b/contributors/design-proposals/all-in-one-volume.md index aa12c118..9c91f102 100644 --- a/contributors/design-proposals/all-in-one-volume.md +++ b/contributors/design-proposals/all-in-one-volume.md @@ -186,31 +186,40 @@ anything preceding it as before. ### Proposed API objects ```go -type Projections struct { +type ProjectedVolumeSource struct { Sources []VolumeProjection `json:"sources"` - DefaultMode *int32 `json:"defaultMode,omitempty"` + DefaultMode *int32 `json:"defaultMode,omitempty"` } type VolumeProjection struct { - Secret *SecretVolumeSource `json:"secret,omitempty"` - ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"` - DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty"` + Secret *SecretProjection `json:"secret,omitempty"` + ConfigMap *ConfigMapProjection `json:"configMap,omitempty"` + DownwardAPI *DownwardAPIProjection `json:"downwardAPI,omitempty"` } -``` -### Additional required modifications +type SecretProjection struct { + LocalObjectReference + Items []KeyToPath + Optional *bool +} -Add to the VolumeSource struct: +type ConfigMapProjection struct { + LocalObjectReference + Items []KeyToPath + Optional *bool +} -```go -Projected *Projections `json:"projected,omitempty"` -// (other existing fields omitted for brevity) +type DownwardAPIProjection struct { + Items []DownwardAPIVolumeFile +} ``` -Add to the SecretVolumeSource struct: +### Additional required modifications + +Add to the VolumeSource struct: ```go -LocalObjectReference `json:"name,omitempty"` +Projected *ProjectedVolumeSource `json:"projected,omitempty"` // (other existing fields omitted for brevity) ``` |
