Skip to content

Add sub_path_expr to volume mount options #2622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/data-sources/pod.md
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ Read-Only:
- `name` (String)
- `read_only` (Boolean)
- `sub_path` (String)
- `sub_path_expr` (String)



Expand Down Expand Up @@ -1321,6 +1322,7 @@ Read-Only:
- `name` (String)
- `read_only` (Boolean)
- `sub_path` (String)
- `sub_path_expr` (String)



Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/pod_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ Read-Only:
- `name` (String)
- `read_only` (Boolean)
- `sub_path` (String)
- `sub_path_expr` (String)



Expand Down Expand Up @@ -1321,6 +1322,7 @@ Read-Only:
- `name` (String)
- `read_only` (Boolean)
- `sub_path` (String)
- `sub_path_expr` (String)



Expand Down
4 changes: 3 additions & 1 deletion docs/resources/cron_job.md
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--job_template--spec--template--spec--container--volume_device"></a>
### Nested Schema for `spec.job_template.spec.template.spec.container.volume_device`
Expand Down Expand Up @@ -1512,6 +1513,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

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

```
$ terraform import kubernetes_cron_job_v1/example default/example
```
```
2 changes: 2 additions & 0 deletions docs/resources/cron_job_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--job_template--spec--template--spec--container--volume_device"></a>
### Nested Schema for `spec.job_template.spec.template.spec.container.volume_device`
Expand Down Expand Up @@ -1507,6 +1508,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--job_template--spec--template--spec--init_container--volume_device"></a>
### Nested Schema for `spec.job_template.spec.template.spec.init_container.volume_device`
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/daemon_set_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--container--volume_device"></a>
### Nested Schema for `spec.template.spec.container.volume_device`
Expand Down Expand Up @@ -1458,6 +1459,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
### Nested Schema for `spec.template.spec.init_container.volume_device`
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/daemonset.md
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--container--volume_device"></a>
### Nested Schema for `spec.template.spec.container.volume_device`
Expand Down Expand Up @@ -1458,6 +1459,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
### Nested Schema for `spec.template.spec.init_container.volume_device`
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--container--volume_device"></a>
### Nested Schema for `spec.template.spec.container.volume_device`
Expand Down Expand Up @@ -1458,6 +1459,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
### Nested Schema for `spec.template.spec.init_container.volume_device`
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/deployment_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--container--volume_device"></a>
### Nested Schema for `spec.template.spec.container.volume_device`
Expand Down Expand Up @@ -1466,6 +1467,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
### Nested Schema for `spec.template.spec.init_container.volume_device`
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/job.md
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--container--volume_device"></a>
### Nested Schema for `spec.template.spec.container.volume_device`
Expand Down Expand Up @@ -1466,6 +1467,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
### Nested Schema for `spec.template.spec.init_container.volume_device`
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/job_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--container--volume_device"></a>
### Nested Schema for `spec.template.spec.container.volume_device`
Expand Down Expand Up @@ -1464,6 +1465,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--template--spec--init_container--volume_device"></a>
### Nested Schema for `spec.template.spec.init_container.volume_device`
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/pod.md
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--container--volume_device"></a>
### Nested Schema for `spec.container.volume_device`
Expand Down Expand Up @@ -1418,6 +1419,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--init_container--volume_device"></a>
### Nested Schema for `spec.init_container.volume_device`
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/pod_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--container--volume_device"></a>
### Nested Schema for `spec.container.volume_device`
Expand Down Expand Up @@ -1416,6 +1417,7 @@ Optional:
- `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.
- `read_only` (Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
- `sub_path` (String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
- `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).

<a id="nestedblock--spec--init_container--volume_device"></a>
### Nested Schema for `spec.init_container.volume_device`
Expand Down
Loading