Merge pull request #94161 from RyPeck/mark-volume-projection-as-optional

Make ProjectedVolumeSource optional
This commit is contained in:
Kubernetes Prow Robot 2020-08-29 15:44:22 -07:00 committed by GitHub
commit 08d20fb1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -8899,9 +8899,6 @@
"type": "array"
}
},
"required": [
"sources"
],
"type": "object"
},
"io.k8s.api.core.v1.QuobyteVolumeSource": {

View File

@ -3852,6 +3852,7 @@ message Probe {
// Represents a projected volume source
message ProjectedVolumeSource {
// list of volume projections
// +optional
repeated VolumeProjection sources = 1;
// Mode bits used to set permissions on created files by default.

View File

@ -1615,6 +1615,7 @@ type ServiceAccountTokenProjection struct {
// Represents a projected volume source
type ProjectedVolumeSource struct {
// list of volume projections
// +optional
Sources []VolumeProjection `json:"sources" protobuf:"bytes,1,rep,name=sources"`
// Mode bits used to set permissions on created files by default.
// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.