Skip to content

Commit

Permalink
Add sub_path_expr to volume mount options
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-f5 committed Jan 2, 2025
1 parent 8aa8b4d commit 15982da
Show file tree
Hide file tree
Showing 19 changed files with 128 additions and 1 deletion.
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

0 comments on commit 15982da

Please sign in to comment.