Update all-in-one proposal to reflect reality
This commit is contained in:
parent
5e45df8618
commit
a876d97a57
|
@ -186,15 +186,31 @@ anything preceding it as before.
|
||||||
### Proposed API objects
|
### Proposed API objects
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type Projections struct {
|
type ProjectedVolumeSource struct {
|
||||||
Sources []VolumeProjection `json:"sources"`
|
Sources []VolumeProjection `json:"sources"`
|
||||||
DefaultMode *int32 `json:"defaultMode,omitempty"`
|
DefaultMode *int32 `json:"defaultMode,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type VolumeProjection struct {
|
type VolumeProjection struct {
|
||||||
Secret *SecretVolumeSource `json:"secret,omitempty"`
|
Secret *SecretProjection `json:"secret,omitempty"`
|
||||||
ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"`
|
ConfigMap *ConfigMapProjection `json:"configMap,omitempty"`
|
||||||
DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty"`
|
DownwardAPI *DownwardAPIProjection `json:"downwardAPI,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type SecretProjection struct {
|
||||||
|
LocalObjectReference
|
||||||
|
Items []KeyToPath
|
||||||
|
Optional *bool
|
||||||
|
}
|
||||||
|
|
||||||
|
type ConfigMapProjection struct {
|
||||||
|
LocalObjectReference
|
||||||
|
Items []KeyToPath
|
||||||
|
Optional *bool
|
||||||
|
}
|
||||||
|
|
||||||
|
type DownwardAPIProjection struct {
|
||||||
|
Items []DownwardAPIVolumeFile
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -203,14 +219,7 @@ type VolumeProjection struct {
|
||||||
Add to the VolumeSource struct:
|
Add to the VolumeSource struct:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
Projected *Projections `json:"projected,omitempty"`
|
Projected *ProjectedVolumeSource `json:"projected,omitempty"`
|
||||||
// (other existing fields omitted for brevity)
|
|
||||||
```
|
|
||||||
|
|
||||||
Add to the SecretVolumeSource struct:
|
|
||||||
|
|
||||||
```go
|
|
||||||
LocalObjectReference `json:"name,omitempty"`
|
|
||||||
// (other existing fields omitted for brevity)
|
// (other existing fields omitted for brevity)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue