/
VolumeMount.go
35 lines (32 loc) · 1.42 KB
/
VolumeMount.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package cdk8splus24
// Mount a volume from the pod to the container.
type VolumeMount struct {
// Determines how mounts are propagated from the host to container and the other way around.
//
// When not set, MountPropagationNone is used.
//
// Mount propagation allows for sharing volumes mounted by a Container to
// other Containers in the same Pod, or even to other Pods on the same node.
Propagation MountPropagation `field:"optional" json:"propagation" yaml:"propagation"`
// Mounted read-only if true, read-write otherwise (false or unspecified).
//
// Defaults to false.
ReadOnly *bool `field:"optional" json:"readOnly" yaml:"readOnly"`
// Path within the volume from which the container's volume should be mounted.).
SubPath *string `field:"optional" json:"subPath" yaml:"subPath"`
// Expanded path within the volume from which the container's volume should be mounted.
//
// Behaves similarly to SubPath but environment variable references
// $(VAR_NAME) are expanded using the container's environment. Defaults to ""
// (volume's root).
//
// `subPathExpr` and `subPath` are mutually exclusive.
SubPathExpr *string `field:"optional" json:"subPathExpr" yaml:"subPathExpr"`
// Path within the container at which the volume should be mounted.
//
// Must not
// contain ':'.
Path *string `field:"required" json:"path" yaml:"path"`
// The volume to mount.
Volume Volume `field:"required" json:"volume" yaml:"volume"`
}