Skip to content

Commit

Permalink
Update all-in-one proposal to reflect reality
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Peeler committed Feb 21, 2017
1 parent 84d0522 commit 659de83
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions all-in-one-volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down

0 comments on commit 659de83

Please sign in to comment.