github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/model_volume_mount.go (about) 1 /* 2 * Testkube API 3 * 4 * Testkube provides a Kubernetes-native framework for test definition, execution and results 5 * 6 * API version: 1.0.0 7 * Contact: testkube@kubeshop.io 8 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 9 */ 10 package testkube 11 12 // VolumeMount describes a mounting of a Volume within a container. 13 type VolumeMount struct { 14 // Path within the container at which the volume should be mounted. Must not contain ':'. 15 MountPath string `json:"mountPath"` 16 MountPropagation *BoxedString `json:"mountPropagation,omitempty"` 17 // This must match the Name of a Volume. 18 Name string `json:"name"` 19 // Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. 20 ReadOnly bool `json:"readOnly,omitempty"` 21 // Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). 22 SubPath string `json:"subPath,omitempty"` 23 // 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. 24 SubPathExpr string `json:"subPathExpr,omitempty"` 25 }