Skip to content

Commit cfeb53a

Browse files
committed
Add sub_path_expr to volume mount options
1 parent 384d2da commit cfeb53a

19 files changed

+128
-1
lines changed

docs/data-sources/pod.md

+2
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ Read-Only:
802802
- `name` (String)
803803
- `read_only` (Boolean)
804804
- `sub_path` (String)
805+
- `sub_path_expr` (String)
805806

806807

807808

@@ -1321,6 +1322,7 @@ Read-Only:
13211322
- `name` (String)
13221323
- `read_only` (Boolean)
13231324
- `sub_path` (String)
1325+
- `sub_path_expr` (String)
13241326

13251327

13261328

docs/data-sources/pod_v1.md

+2
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ Read-Only:
802802
- `name` (String)
803803
- `read_only` (Boolean)
804804
- `sub_path` (String)
805+
- `sub_path_expr` (String)
805806

806807

807808

@@ -1321,6 +1322,7 @@ Read-Only:
13211322
- `name` (String)
13221323
- `read_only` (Boolean)
13231324
- `sub_path` (String)
1325+
- `sub_path_expr` (String)
13241326

13251327

13261328

docs/resources/cron_job.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,7 @@ Optional:
951951
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
952952
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
953953
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
954+
- `sub_path_expr` (String) 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).
954955

955956
<a id="nestedblock--spec--job_template--spec--template--spec--container--volume_device"></a>
956957
### Nested Schema for `spec.job_template.spec.template.spec.container.volume_device`
@@ -1512,6 +1513,7 @@ Optional:
15121513
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
15131514
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
15141515
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1516+
- `sub_path_expr` (String) 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).
15151517

15161518
<a id="nestedblock--spec--job_template--spec--template--spec--init_container--volume_device"></a>
15171519
### Nested Schema for `spec.job_template.spec.template.spec.init_container.volume_device`
@@ -2389,4 +2391,4 @@ resource "kubernetes_cron_job" "demo" {
23892391

23902392
```
23912393
$ terraform import kubernetes_cron_job_v1/example default/example
2392-
```
2394+
```

docs/resources/cron_job_v1.md

+2
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ Optional:
946946
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
947947
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
948948
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
949+
- `sub_path_expr` (String) 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).
949950

950951
<a id="nestedblock--spec--job_template--spec--template--spec--container--volume_device"></a>
951952
### Nested Schema for `spec.job_template.spec.template.spec.container.volume_device`
@@ -1507,6 +1508,7 @@ Optional:
15071508
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
15081509
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
15091510
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1511+
- `sub_path_expr` (String) 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).
15101512

15111513
<a id="nestedblock--spec--job_template--spec--template--spec--init_container--volume_device"></a>
15121514
### Nested Schema for `spec.job_template.spec.template.spec.init_container.volume_device`

docs/resources/daemon_set_v1.md

+2
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ Optional:
898898
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
899899
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
900900
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
901+
- `sub_path_expr` (String) 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).
901902

902903
<a id="nestedblock--spec--template--spec--container--volume_device"></a>
903904
### Nested Schema for `spec.template.spec.container.volume_device`
@@ -1458,6 +1459,7 @@ Optional:
14581459
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14591460
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14601461
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1462+
- `sub_path_expr` (String) 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).
14611463

14621464
<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
14631465
### Nested Schema for `spec.template.spec.init_container.volume_device`

docs/resources/daemonset.md

+2
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ Optional:
898898
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
899899
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
900900
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
901+
- `sub_path_expr` (String) 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).
901902

902903
<a id="nestedblock--spec--template--spec--container--volume_device"></a>
903904
### Nested Schema for `spec.template.spec.container.volume_device`
@@ -1458,6 +1459,7 @@ Optional:
14581459
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14591460
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14601461
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1462+
- `sub_path_expr` (String) 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).
14611463

14621464
<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
14631465
### Nested Schema for `spec.template.spec.init_container.volume_device`

docs/resources/deployment.md

+2
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ Optional:
898898
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
899899
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
900900
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
901+
- `sub_path_expr` (String) 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).
901902

902903
<a id="nestedblock--spec--template--spec--container--volume_device"></a>
903904
### Nested Schema for `spec.template.spec.container.volume_device`
@@ -1458,6 +1459,7 @@ Optional:
14581459
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14591460
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14601461
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1462+
- `sub_path_expr` (String) 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).
14611463

14621464
<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
14631465
### Nested Schema for `spec.template.spec.init_container.volume_device`

docs/resources/deployment_v1.md

+2
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,7 @@ Optional:
906906
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
907907
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
908908
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
909+
- `sub_path_expr` (String) 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).
909910

910911
<a id="nestedblock--spec--template--spec--container--volume_device"></a>
911912
### Nested Schema for `spec.template.spec.container.volume_device`
@@ -1466,6 +1467,7 @@ Optional:
14661467
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14671468
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14681469
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1470+
- `sub_path_expr` (String) 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).
14691471

14701472
<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
14711473
### Nested Schema for `spec.template.spec.init_container.volume_device`

docs/resources/job.md

+2
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,7 @@ Optional:
906906
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
907907
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
908908
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
909+
- `sub_path_expr` (String) 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).
909910

910911
<a id="nestedblock--spec--template--spec--container--volume_device"></a>
911912
### Nested Schema for `spec.template.spec.container.volume_device`
@@ -1466,6 +1467,7 @@ Optional:
14661467
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14671468
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14681469
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1470+
- `sub_path_expr` (String) 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).
14691471

14701472
<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
14711473
### Nested Schema for `spec.template.spec.init_container.volume_device`

docs/resources/job_v1.md

+2
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ Optional:
904904
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
905905
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
906906
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
907+
- `sub_path_expr` (String) 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).
907908

908909
<a id="nestedblock--spec--template--spec--container--volume_device"></a>
909910
### Nested Schema for `spec.template.spec.container.volume_device`
@@ -1464,6 +1465,7 @@ Optional:
14641465
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14651466
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14661467
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1468+
- `sub_path_expr` (String) 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).
14671469

14681470
<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
14691471
### Nested Schema for `spec.template.spec.init_container.volume_device`

docs/resources/pod.md

+2
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ Optional:
857857
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
858858
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
859859
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
860+
- `sub_path_expr` (String) 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).
860861

861862
<a id="nestedblock--spec--container--volume_device"></a>
862863
### Nested Schema for `spec.container.volume_device`
@@ -1418,6 +1419,7 @@ Optional:
14181419
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14191420
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14201421
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1422+
- `sub_path_expr` (String) 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).
14211423

14221424
<a id="nestedblock--spec--init_container--volume_device"></a>
14231425
### Nested Schema for `spec.init_container.volume_device`

docs/resources/pod_v1.md

+2
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ Optional:
855855
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
856856
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
857857
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
858+
- `sub_path_expr` (String) 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).
858859

859860
<a id="nestedblock--spec--container--volume_device"></a>
860861
### Nested Schema for `spec.container.volume_device`
@@ -1416,6 +1417,7 @@ Optional:
14161417
- `mount_propagation` (String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.
14171418
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
14181419
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
1420+
- `sub_path_expr` (String) 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).
14191421

14201422
<a id="nestedblock--spec--init_container--volume_device"></a>
14211423
### Nested Schema for `spec.init_container.volume_device`

0 commit comments

Comments
 (0)