@@ -1092,8 +1092,10 @@ type SecretVolumeSource struct {
1092
1092
// relative and may not contain the '..' path or start with '..'.
1093
1093
// +optional
1094
1094
Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
1095
- // Optional: mode bits to use on created files by default. Must be a
1096
- // value between 0 and 0777. Defaults to 0644.
1095
+ // Optional: mode bits used to set permissions on created files by default.
1096
+ // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
1097
+ // YAML accepts both octal and decimal values, JSON requires decimal values
1098
+ // for mode bits. Defaults to 0644.
1097
1099
// Directories within the path are not affected by this setting.
1098
1100
// This might be in conflict with other options that affect the file
1099
1101
// mode, like fsGroup, and the result can be other mode bits set.
@@ -1518,8 +1520,10 @@ type ConfigMapVolumeSource struct {
1518
1520
// relative and may not contain the '..' path or start with '..'.
1519
1521
// +optional
1520
1522
Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
1521
- // Optional: mode bits to use on created files by default. Must be a
1522
- // value between 0 and 0777. Defaults to 0644.
1523
+ // Optional: mode bits used to set permissions on created files by default.
1524
+ // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
1525
+ // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
1526
+ // Defaults to 0644.
1523
1527
// Directories within the path are not affected by this setting.
1524
1528
// This might be in conflict with other options that affect the file
1525
1529
// mode, like fsGroup, and the result can be other mode bits set.
@@ -1585,8 +1589,9 @@ type ServiceAccountTokenProjection struct {
1585
1589
type ProjectedVolumeSource struct {
1586
1590
// list of volume projections
1587
1591
Sources []VolumeProjection `json:"sources" protobuf:"bytes,1,rep,name=sources"`
1588
- // Mode bits to use on created files by default. Must be a value between
1589
- // 0 and 0777.
1592
+ // Mode bits used to set permissions on created files by default.
1593
+ // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
1594
+ // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
1590
1595
// Directories within the path are not affected by this setting.
1591
1596
// This might be in conflict with other options that affect the file
1592
1597
// mode, like fsGroup, and the result can be other mode bits set.
@@ -1626,8 +1631,10 @@ type KeyToPath struct {
1626
1631
// May not contain the path element '..'.
1627
1632
// May not start with the string '..'.
1628
1633
Path string `json:"path" protobuf:"bytes,2,opt,name=path"`
1629
- // Optional: mode bits to use on this file, must be a value between 0
1630
- // and 0777. If not specified, the volume defaultMode will be used.
1634
+ // Optional: mode bits used to set permissions on this file.
1635
+ // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
1636
+ // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
1637
+ // If not specified, the volume defaultMode will be used.
1631
1638
// This might be in conflict with other options that affect the file
1632
1639
// mode, like fsGroup, and the result can be other mode bits set.
1633
1640
// +optional
@@ -5730,7 +5737,10 @@ type DownwardAPIVolumeSource struct {
5730
5737
// +optional
5731
5738
Items []DownwardAPIVolumeFile `json:"items,omitempty" protobuf:"bytes,1,rep,name=items"`
5732
5739
// Optional: mode bits to use on created files by default. Must be a
5733
- // value between 0 and 0777. Defaults to 0644.
5740
+ // Optional: mode bits used to set permissions on created files by default.
5741
+ // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
5742
+ // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
5743
+ // Defaults to 0644.
5734
5744
// Directories within the path are not affected by this setting.
5735
5745
// This might be in conflict with other options that affect the file
5736
5746
// mode, like fsGroup, and the result can be other mode bits set.
@@ -5753,8 +5763,10 @@ type DownwardAPIVolumeFile struct {
5753
5763
// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
5754
5764
// +optional
5755
5765
ResourceFieldRef * ResourceFieldSelector `json:"resourceFieldRef,omitempty" protobuf:"bytes,3,opt,name=resourceFieldRef"`
5756
- // Optional: mode bits to use on this file, must be a value between 0
5757
- // and 0777. If not specified, the volume defaultMode will be used.
5766
+ // Optional: mode bits used to set permissions on this file, must be an octal value
5767
+ // between 0000 and 0777 or a decimal value between 0 and 511.
5768
+ // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
5769
+ // If not specified, the volume defaultMode will be used.
5758
5770
// This might be in conflict with other options that affect the file
5759
5771
// mode, like fsGroup, and the result can be other mode bits set.
5760
5772
// +optional
0 commit comments