Skip to content

Commit c5cf36d

Browse files
committed
Adds missing fields for iSCSI volumes
1 parent d2fe7bd commit c5cf36d

23 files changed

+358
-25
lines changed

docs/data-sources/persistent_volume_v1.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,23 @@ Required:
313313

314314
Optional:
315315

316+
- `chap_auth_discovery` (Boolean) Whether target supports iSCSI Discovery CHAP authentication.
317+
- `chap_auth_session` (Boolean) Whether target supports iSCSI Session CHAP authentication.
316318
- `fs_type` (String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
319+
- `initiator_name` (String) The custom iSCSI Initiator Name. If initiator_name is specified with iscsi_interface simultaneously, new iSCSI interface `target portal:volume name` will be created for the connection.
317320
- `iscsi_interface` (String) iSCSI interface name that uses an iSCSI transport. Defaults to 'default' (tcp).
318321
- `lun` (Number) iSCSI target lun number.
322+
- `portals` (List of String) The iSCSI Target Portal List. The Portal is either an IP or `ip_addr:port` if the port is other than default (typically TCP ports 860 and 3260).
319323
- `read_only` (Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false.
324+
- `secret_ref` (Block List, Max: 1) The CHAP Secret for iSCSI target and initiator authentication. Default is nil. More info: https://github.com/kubernetes/examples/tree/master/_archived/volumes/iscsi (see [below for nested schema](#nestedblock--spec--persistent_volume_source--iscsi--secret_ref))
325+
326+
<a id="nestedblock--spec--persistent_volume_source--iscsi--secret_ref"></a>
327+
### Nested Schema for `spec.persistent_volume_source.iscsi.secret_ref`
328+
329+
Optional:
330+
331+
- `name` (String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
332+
- `namespace` (String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
320333

321334

322335
<a id="nestedblock--spec--persistent_volume_source--local"></a>

docs/data-sources/pod.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,14 +1794,27 @@ Read-Only:
17941794

17951795
Read-Only:
17961796

1797+
- `chap_auth_discovery` (Boolean)
1798+
- `chap_auth_session` (Boolean)
17971799
- `fs_type` (String)
1800+
- `initiator_name` (String)
17981801
- `iqn` (String)
17991802
- `iscsi_interface` (String)
18001803
- `lun` (Number)
1804+
- `portals` (List of String)
18011805
- `read_only` (Boolean)
1806+
- `secret_ref` (List of Object) (see [below for nested schema](#nestedobjatt--spec--volume--iscsi--secret_ref))
18021807
- `target_portal` (String)
18031808

18041809

1810+
<a id="nestedobjatt--spec--volume--iscsi--secret_ref"></a>
1811+
### Nested Schema for `spec.volume.iscsi.secret_ref`
1812+
1813+
Read-Only:
1814+
1815+
- `name` (String)
1816+
1817+
18051818
<a id="nestedobjatt--spec--volume--local"></a>
18061819
### Nested Schema for `spec.volume.local`
18071820

docs/data-sources/pod_v1.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ Read-Only:
868868
- `tty` (Boolean)
869869
- `volume_mount` (List of Object) (see [below for nested schema](#nestedobjatt--spec--init_container--volume_mount))
870870
- `working_dir` (String)
871-
- `restart_policy` (String)
871+
- `restart_policy` (String)
872872

873873
<a id="nestedobjatt--spec--init_container--env"></a>
874874
### Nested Schema for `spec.init_container.env`
@@ -1795,14 +1795,27 @@ Read-Only:
17951795

17961796
Read-Only:
17971797

1798+
- `chap_auth_discovery` (Boolean)
1799+
- `chap_auth_session` (Boolean)
17981800
- `fs_type` (String)
1801+
- `initiator_name` (String)
17991802
- `iqn` (String)
18001803
- `iscsi_interface` (String)
18011804
- `lun` (Number)
1805+
- `portals` (List of String)
18021806
- `read_only` (Boolean)
1807+
- `secret_ref` (List of Object) (see [below for nested schema](#nestedobjatt--spec--volume--iscsi--secret_ref))
18031808
- `target_portal` (String)
18041809

18051810

1811+
<a id="nestedobjatt--spec--volume--iscsi--secret_ref"></a>
1812+
### Nested Schema for `spec.volume.iscsi.secret_ref`
1813+
1814+
Read-Only:
1815+
1816+
- `name` (String)
1817+
1818+
18061819
<a id="nestedobjatt--spec--volume--local"></a>
18071820
### Nested Schema for `spec.volume.local`
18081821

docs/guides/getting-started.html.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,12 +487,21 @@ Terraform will perform the following actions:
487487
}
488488
489489
+ iscsi {
490-
+ fs_type = (known after apply)
491-
+ iqn = (known after apply)
492-
+ iscsi_interface = (known after apply)
493-
+ lun = (known after apply)
494-
+ read_only = (known after apply)
495-
+ target_portal = (known after apply)
490+
+ chap_auth_discovery = (known after apply)
491+
+ chap_auth_session = (known after apply)
492+
+ fs_type = (known after apply)
493+
+ initiator_name = (known after apply)
494+
+ iqn = (known after apply)
495+
+ iscsi_interface = (known after apply)
496+
+ lun = (known after apply)
497+
+ portals = (known after apply)
498+
+ read_only = (known after apply)
499+
500+
+ secret_ref {
501+
+ name = (known after apply)
502+
}
503+
504+
+ target_portal = (known after apply)
496505
}
497506
498507
+ local {

docs/resources/cron_job.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: |-
55
A Cron Job creates Jobs on a time-based schedule. One CronJob object is like one line of a crontab (cron table) file.
66
---
77

8-
# kubernetes_cron_job
8+
# kubernetes_cron_job
99

1010
A Cron Job creates Jobs on a time-based schedule.
1111

@@ -2034,10 +2034,22 @@ Required:
20342034

20352035
Optional:
20362036

2037+
- `chap_auth_discovery` (Boolean) Whether target supports iSCSI Discovery CHAP authentication.
2038+
- `chap_auth_session` (Boolean) Whether target supports iSCSI Session CHAP authentication.
20372039
- `fs_type` (String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
2040+
- `initiator_name` (String) The custom iSCSI Initiator Name. If initiator_name is specified with iscsi_interface simultaneously, new iSCSI interface `target portal:volume name` will be created for the connection.
20382041
- `iscsi_interface` (String) iSCSI interface name that uses an iSCSI transport. Defaults to 'default' (tcp).
20392042
- `lun` (Number) iSCSI target lun number.
2043+
- `portals` (List of String) The iSCSI Target Portal List. The Portal is either an IP or `ip_addr:port` if the port is other than default (typically TCP ports 860 and 3260).
20402044
- `read_only` (Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false.
2045+
- `secret_ref` (Block List, Max: 1) The CHAP Secret for iSCSI target and initiator authentication. Default is nil. More info: https://github.com/kubernetes/examples/tree/master/_archived/volumes/iscsi (see [below for nested schema](#nestedblock--spec--persistent_volume_source--iscsi--secret_ref))
2046+
2047+
<a id="nestedblock--spec--persistent_volume_source--iscsi--secret_ref"></a>
2048+
### Nested Schema for `spec.persistent_volume_source.iscsi.secret_ref`
2049+
2050+
Optional:
2051+
2052+
- `name` (String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
20412053

20422054

20432055
<a id="nestedblock--spec--job_template--spec--template--spec--volume--local"></a>
@@ -2387,7 +2399,7 @@ resource "kubernetes_cron_job" "demo" {
23872399
```
23882400

23892401

2390-
## Import
2402+
## Import
23912403

23922404
```
23932405
$ terraform import kubernetes_cron_job_v1/example default/example

docs/resources/cron_job_v1.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,10 +2029,22 @@ Required:
20292029

20302030
Optional:
20312031

2032+
- `chap_auth_discovery` (Boolean) Whether target supports iSCSI Discovery CHAP authentication.
2033+
- `chap_auth_session` (Boolean) Whether target supports iSCSI Session CHAP authentication.
20322034
- `fs_type` (String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
2035+
- `initiator_name` (String) The custom iSCSI Initiator Name. If initiator_name is specified with iscsi_interface simultaneously, new iSCSI interface `target portal:volume name` will be created for the connection.
20332036
- `iscsi_interface` (String) iSCSI interface name that uses an iSCSI transport. Defaults to 'default' (tcp).
20342037
- `lun` (Number) iSCSI target lun number.
2038+
- `portals` (List of String) The iSCSI Target Portal List. The Portal is either an IP or `ip_addr:port` if the port is other than default (typically TCP ports 860 and 3260).
20352039
- `read_only` (Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false.
2040+
- `secret_ref` (Block List, Max: 1) The CHAP Secret for iSCSI target and initiator authentication. Default is nil. More info: https://github.com/kubernetes/examples/tree/master/_archived/volumes/iscsi (see [below for nested schema](#nestedblock--spec--persistent_volume_source--iscsi--secret_ref))
2041+
2042+
<a id="nestedblock--spec--persistent_volume_source--iscsi--secret_ref"></a>
2043+
### Nested Schema for `spec.persistent_volume_source.iscsi.secret_ref`
2044+
2045+
Optional:
2046+
2047+
- `name` (String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
20362048

20372049

20382050
<a id="nestedblock--spec--job_template--spec--template--spec--volume--local"></a>

docs/resources/daemon_set_v1.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,8 @@ Optional:
978978
- `volume_mount` (Block List) Pod volumes to mount into the container's filesystem. Cannot be updated. (see [below for nested schema](#nestedblock--spec--template--spec--init_container--volume_mount))
979979
- `volume_device` (Block List) Raw volume devices to attach into the container's filesystem as raw block devices. Cannot be updated. More info: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1 (see [below for nested schema](#nestedblock--spec--template--spec--init_container--volume_device))
980980
- `working_dir` (String) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.
981-
- `restart_policy` (String) Restart policy for designating init container as a sidecar. Can only be `Always`. More info: https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/#pod-sidecar-containers.
982-
981+
- `restart_policy` (String) Restart policy for designating init container as a sidecar. Can only be `Always`. More info: https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/#pod-sidecar-containers.
982+
983983

984984
<a id="nestedblock--spec--template--spec--init_container--env"></a>
985985
### Nested Schema for `spec.template.spec.init_container.env`
@@ -1981,10 +1981,22 @@ Required:
19811981

19821982
Optional:
19831983

1984+
- `chap_auth_discovery` (Boolean) Whether target supports iSCSI Discovery CHAP authentication.
1985+
- `chap_auth_session` (Boolean) Whether target supports iSCSI Session CHAP authentication.
19841986
- `fs_type` (String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
1987+
- `initiator_name` (String) The custom iSCSI Initiator Name. If initiator_name is specified with iscsi_interface simultaneously, new iSCSI interface `target portal:volume name` will be created for the connection.
19851988
- `iscsi_interface` (String) iSCSI interface name that uses an iSCSI transport. Defaults to 'default' (tcp).
19861989
- `lun` (Number) iSCSI target lun number.
1990+
- `portals` (List of String) The iSCSI Target Portal List. The Portal is either an IP or `ip_addr:port` if the port is other than default (typically TCP ports 860 and 3260).
19871991
- `read_only` (Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false.
1992+
- `secret_ref` (Block List, Max: 1) The CHAP Secret for iSCSI target and initiator authentication. Default is nil. More info: https://github.com/kubernetes/examples/tree/master/_archived/volumes/iscsi (see [below for nested schema](#nestedblock--spec--persistent_volume_source--iscsi--secret_ref))
1993+
1994+
<a id="nestedblock--spec--persistent_volume_source--iscsi--secret_ref"></a>
1995+
### Nested Schema for `spec.persistent_volume_source.iscsi.secret_ref`
1996+
1997+
Optional:
1998+
1999+
- `name` (String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
19882000

19892001

19902002
<a id="nestedblock--spec--template--spec--volume--local"></a>
@@ -2278,7 +2290,7 @@ Optional:
22782290
- `update` (String)
22792291

22802292

2281-
2293+
22822294

22832295
## Example Usage
22842296

docs/resources/daemonset.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: |-
55
A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.
66
---
77

8-
# kubernetes_daemonset
8+
# kubernetes_daemonset
99

1010
A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are removed from the cluster, those Pods are garbage collected. Deleting a DaemonSet will clean up the Pods it created.
1111

@@ -1979,10 +1979,22 @@ Required:
19791979

19801980
Optional:
19811981

1982+
- `chap_auth_discovery` (Boolean) Whether target supports iSCSI Discovery CHAP authentication.
1983+
- `chap_auth_session` (Boolean) Whether target supports iSCSI Session CHAP authentication.
19821984
- `fs_type` (String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
1985+
- `initiator_name` (String) The custom iSCSI Initiator Name. If initiator_name is specified with iscsi_interface simultaneously, new iSCSI interface `target portal:volume name` will be created for the connection.
19831986
- `iscsi_interface` (String) iSCSI interface name that uses an iSCSI transport. Defaults to 'default' (tcp).
19841987
- `lun` (Number) iSCSI target lun number.
1988+
- `portals` (List of String) The iSCSI Target Portal List. The Portal is either an IP or `ip_addr:port` if the port is other than default (typically TCP ports 860 and 3260).
19851989
- `read_only` (Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false.
1990+
- `secret_ref` (Block List, Max: 1) The CHAP Secret for iSCSI target and initiator authentication. Default is nil. More info: https://github.com/kubernetes/examples/tree/master/_archived/volumes/iscsi (see [below for nested schema](#nestedblock--spec--persistent_volume_source--iscsi--secret_ref))
1991+
1992+
<a id="nestedblock--spec--persistent_volume_source--iscsi--secret_ref"></a>
1993+
### Nested Schema for `spec.persistent_volume_source.iscsi.secret_ref`
1994+
1995+
Optional:
1996+
1997+
- `name` (String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
19861998

19871999

19882000
<a id="nestedblock--spec--template--spec--volume--local"></a>

docs/resources/deployment.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,10 +1979,22 @@ Required:
19791979

19801980
Optional:
19811981

1982+
- `chap_auth_discovery` (Boolean) Whether target supports iSCSI Discovery CHAP authentication.
1983+
- `chap_auth_session` (Boolean) Whether target supports iSCSI Session CHAP authentication.
19821984
- `fs_type` (String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
1985+
- `initiator_name` (String) The custom iSCSI Initiator Name. If initiator_name is specified with iscsi_interface simultaneously, new iSCSI interface `target portal:volume name` will be created for the connection.
19831986
- `iscsi_interface` (String) iSCSI interface name that uses an iSCSI transport. Defaults to 'default' (tcp).
19841987
- `lun` (Number) iSCSI target lun number.
1988+
- `portals` (List of String) The iSCSI Target Portal List. The Portal is either an IP or `ip_addr:port` if the port is other than default (typically TCP ports 860 and 3260).
19851989
- `read_only` (Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false.
1990+
- `secret_ref` (Block List, Max: 1) The CHAP Secret for iSCSI target and initiator authentication. Default is nil. More info: https://github.com/kubernetes/examples/tree/master/_archived/volumes/iscsi (see [below for nested schema](#nestedblock--spec--persistent_volume_source--iscsi--secret_ref))
1991+
1992+
<a id="nestedblock--spec--persistent_volume_source--iscsi--secret_ref"></a>
1993+
### Nested Schema for `spec.persistent_volume_source.iscsi.secret_ref`
1994+
1995+
Optional:
1996+
1997+
- `name` (String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
19861998

19871999

19882000
<a id="nestedblock--spec--template--spec--volume--local"></a>

docs/resources/deployment_v1.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ Optional:
986986
- `volume_mount` (Block List) Pod volumes to mount into the container's filesystem. Cannot be updated. (see [below for nested schema](#nestedblock--spec--template--spec--init_container--volume_mount))
987987
- `volume_device` (Block List) Raw volume devices to attach into the container's filesystem as raw block devices. Cannot be updated. More info: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1 (see [below for nested schema](#nestedblock--spec--template--spec--init_container--volume_device))
988988
- `working_dir` (String) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.
989-
- `restart_policy` (String) Restart policy for designating init container as a sidecar. Can only be `Always`. More info: https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/#pod-sidecar-containers.
989+
- `restart_policy` (String) Restart policy for designating init container as a sidecar. Can only be `Always`. More info: https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/#pod-sidecar-containers.
990990

991991

992992
<a id="nestedblock--spec--template--spec--init_container--env"></a>
@@ -1989,10 +1989,22 @@ Required:
19891989

19901990
Optional:
19911991

1992+
- `chap_auth_discovery` (Boolean) Whether target supports iSCSI Discovery CHAP authentication.
1993+
- `chap_auth_session` (Boolean) Whether target supports iSCSI Session CHAP authentication.
19921994
- `fs_type` (String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
1995+
- `initiator_name` (String) The custom iSCSI Initiator Name. If initiator_name is specified with iscsi_interface simultaneously, new iSCSI interface `target portal:volume name` will be created for the connection.
19931996
- `iscsi_interface` (String) iSCSI interface name that uses an iSCSI transport. Defaults to 'default' (tcp).
19941997
- `lun` (Number) iSCSI target lun number.
1998+
- `portals` (List of String) The iSCSI Target Portal List. The Portal is either an IP or `ip_addr:port` if the port is other than default (typically TCP ports 860 and 3260).
19951999
- `read_only` (Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false.
2000+
- `secret_ref` (Block List, Max: 1) The CHAP Secret for iSCSI target and initiator authentication. Default is nil. More info: https://github.com/kubernetes/examples/tree/master/_archived/volumes/iscsi (see [below for nested schema](#nestedblock--spec--persistent_volume_source--iscsi--secret_ref))
2001+
2002+
<a id="nestedblock--spec--persistent_volume_source--iscsi--secret_ref"></a>
2003+
### Nested Schema for `spec.persistent_volume_source.iscsi.secret_ref`
2004+
2005+
Optional:
2006+
2007+
- `name` (String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
19962008

19972009

19982010
<a id="nestedblock--spec--template--spec--volume--local"></a>

0 commit comments

Comments
 (0)