You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"kubernetes_persistent_volume""this" {
dynamic"metadata" {
for_each=var.metadatacontent {
# annotations - (optional) is a type of map of stringannotations=metadata.value["annotations"]
# labels - (optional) is a type of map of stringlabels=metadata.value["labels"]
# name - (optional) is a type of stringname=metadata.value["name"]
}
}
dynamic"spec" {
for_each=var.speccontent {
# access_modes - (required) is a type of set of stringaccess_modes=spec.value["access_modes"]
# capacity - (required) is a type of map of stringcapacity=spec.value["capacity"]
# mount_options - (optional) is a type of set of stringmount_options=spec.value["mount_options"]
# persistent_volume_reclaim_policy - (optional) is a type of stringpersistent_volume_reclaim_policy=spec.value["persistent_volume_reclaim_policy"]
# storage_class_name - (optional) is a type of stringstorage_class_name=spec.value["storage_class_name"]
# volume_mode - (optional) is a type of stringvolume_mode=spec.value["volume_mode"]
dynamic"node_affinity" {
for_each=spec.value.node_affinitycontent {
dynamic"required" {
for_each=node_affinity.value.requiredcontent {
dynamic"node_selector_term" {
for_each=required.value.node_selector_termcontent {
dynamic"match_expressions" {
for_each=node_selector_term.value.match_expressionscontent {
# key - (required) is a type of stringkey=match_expressions.value["key"]
# operator - (required) is a type of stringoperator=match_expressions.value["operator"]
# values - (optional) is a type of set of stringvalues=match_expressions.value["values"]
}
}
dynamic"match_fields" {
for_each=node_selector_term.value.match_fieldscontent {
# key - (required) is a type of stringkey=match_fields.value["key"]
# operator - (required) is a type of stringoperator=match_fields.value["operator"]
# values - (optional) is a type of set of stringvalues=match_fields.value["values"]
}
}
}
}
}
}
}
}
dynamic"persistent_volume_source" {
for_each=spec.value.persistent_volume_sourcecontent {
dynamic"aws_elastic_block_store" {
for_each=persistent_volume_source.value.aws_elastic_block_storecontent {
# fs_type - (optional) is a type of stringfs_type=aws_elastic_block_store.value["fs_type"]
# partition - (optional) is a type of numberpartition=aws_elastic_block_store.value["partition"]
# read_only - (optional) is a type of boolread_only=aws_elastic_block_store.value["read_only"]
# volume_id - (required) is a type of stringvolume_id=aws_elastic_block_store.value["volume_id"]
}
}
dynamic"azure_disk" {
for_each=persistent_volume_source.value.azure_diskcontent {
# caching_mode - (required) is a type of stringcaching_mode=azure_disk.value["caching_mode"]
# data_disk_uri - (required) is a type of stringdata_disk_uri=azure_disk.value["data_disk_uri"]
# disk_name - (required) is a type of stringdisk_name=azure_disk.value["disk_name"]
# fs_type - (optional) is a type of stringfs_type=azure_disk.value["fs_type"]
# kind - (optional) is a type of stringkind=azure_disk.value["kind"]
# read_only - (optional) is a type of boolread_only=azure_disk.value["read_only"]
}
}
dynamic"azure_file" {
for_each=persistent_volume_source.value.azure_filecontent {
# read_only - (optional) is a type of boolread_only=azure_file.value["read_only"]
# secret_name - (required) is a type of stringsecret_name=azure_file.value["secret_name"]
# share_name - (required) is a type of stringshare_name=azure_file.value["share_name"]
}
}
dynamic"ceph_fs" {
for_each=persistent_volume_source.value.ceph_fscontent {
# monitors - (required) is a type of set of stringmonitors=ceph_fs.value["monitors"]
# path - (optional) is a type of stringpath=ceph_fs.value["path"]
# read_only - (optional) is a type of boolread_only=ceph_fs.value["read_only"]
# secret_file - (optional) is a type of stringsecret_file=ceph_fs.value["secret_file"]
# user - (optional) is a type of stringuser=ceph_fs.value["user"]
dynamic"secret_ref" {
for_each=ceph_fs.value.secret_refcontent {
# name - (optional) is a type of stringname=secret_ref.value["name"]
# namespace - (optional) is a type of stringnamespace=secret_ref.value["namespace"]
}
}
}
}
dynamic"cinder" {
for_each=persistent_volume_source.value.cindercontent {
# fs_type - (optional) is a type of stringfs_type=cinder.value["fs_type"]
# read_only - (optional) is a type of boolread_only=cinder.value["read_only"]
# volume_id - (required) is a type of stringvolume_id=cinder.value["volume_id"]
}
}
dynamic"csi" {
for_each=persistent_volume_source.value.csicontent {
# driver - (required) is a type of stringdriver=csi.value["driver"]
# fs_type - (optional) is a type of stringfs_type=csi.value["fs_type"]
# read_only - (optional) is a type of boolread_only=csi.value["read_only"]
# volume_attributes - (optional) is a type of map of stringvolume_attributes=csi.value["volume_attributes"]
# volume_handle - (required) is a type of stringvolume_handle=csi.value["volume_handle"]
dynamic"controller_expand_secret_ref" {
for_each=csi.value.controller_expand_secret_refcontent {
# name - (optional) is a type of stringname=controller_expand_secret_ref.value["name"]
# namespace - (optional) is a type of stringnamespace=controller_expand_secret_ref.value["namespace"]
}
}
dynamic"controller_publish_secret_ref" {
for_each=csi.value.controller_publish_secret_refcontent {
# name - (optional) is a type of stringname=controller_publish_secret_ref.value["name"]
# namespace - (optional) is a type of stringnamespace=controller_publish_secret_ref.value["namespace"]
}
}
dynamic"node_publish_secret_ref" {
for_each=csi.value.node_publish_secret_refcontent {
# name - (optional) is a type of stringname=node_publish_secret_ref.value["name"]
# namespace - (optional) is a type of stringnamespace=node_publish_secret_ref.value["namespace"]
}
}
dynamic"node_stage_secret_ref" {
for_each=csi.value.node_stage_secret_refcontent {
# name - (optional) is a type of stringname=node_stage_secret_ref.value["name"]
# namespace - (optional) is a type of stringnamespace=node_stage_secret_ref.value["namespace"]
}
}
}
}
dynamic"fc" {
for_each=persistent_volume_source.value.fccontent {
# fs_type - (optional) is a type of stringfs_type=fc.value["fs_type"]
# lun - (required) is a type of numberlun=fc.value["lun"]
# read_only - (optional) is a type of boolread_only=fc.value["read_only"]
# target_ww_ns - (required) is a type of set of stringtarget_ww_ns=fc.value["target_ww_ns"]
}
}
dynamic"flex_volume" {
for_each=persistent_volume_source.value.flex_volumecontent {
# driver - (required) is a type of stringdriver=flex_volume.value["driver"]
# fs_type - (optional) is a type of stringfs_type=flex_volume.value["fs_type"]
# options - (optional) is a type of map of stringoptions=flex_volume.value["options"]
# read_only - (optional) is a type of boolread_only=flex_volume.value["read_only"]
dynamic"secret_ref" {
for_each=flex_volume.value.secret_refcontent {
# name - (optional) is a type of stringname=secret_ref.value["name"]
# namespace - (optional) is a type of stringnamespace=secret_ref.value["namespace"]
}
}
}
}
dynamic"flocker" {
for_each=persistent_volume_source.value.flockercontent {
# dataset_name - (optional) is a type of stringdataset_name=flocker.value["dataset_name"]
# dataset_uuid - (optional) is a type of stringdataset_uuid=flocker.value["dataset_uuid"]
}
}
dynamic"gce_persistent_disk" {
for_each=persistent_volume_source.value.gce_persistent_diskcontent {
# fs_type - (optional) is a type of stringfs_type=gce_persistent_disk.value["fs_type"]
# partition - (optional) is a type of numberpartition=gce_persistent_disk.value["partition"]
# pd_name - (required) is a type of stringpd_name=gce_persistent_disk.value["pd_name"]
# read_only - (optional) is a type of boolread_only=gce_persistent_disk.value["read_only"]
}
}
dynamic"glusterfs" {
for_each=persistent_volume_source.value.glusterfscontent {
# endpoints_name - (required) is a type of stringendpoints_name=glusterfs.value["endpoints_name"]
# path - (required) is a type of stringpath=glusterfs.value["path"]
# read_only - (optional) is a type of boolread_only=glusterfs.value["read_only"]
}
}
dynamic"host_path" {
for_each=persistent_volume_source.value.host_pathcontent {
# path - (optional) is a type of stringpath=host_path.value["path"]
# type - (optional) is a type of stringtype=host_path.value["type"]
}
}
dynamic"iscsi" {
for_each=persistent_volume_source.value.iscsicontent {
# fs_type - (optional) is a type of stringfs_type=iscsi.value["fs_type"]
# iqn - (required) is a type of stringiqn=iscsi.value["iqn"]
# iscsi_interface - (optional) is a type of stringiscsi_interface=iscsi.value["iscsi_interface"]
# lun - (optional) is a type of numberlun=iscsi.value["lun"]
# read_only - (optional) is a type of boolread_only=iscsi.value["read_only"]
# target_portal - (required) is a type of stringtarget_portal=iscsi.value["target_portal"]
}
}
dynamic"local" {
for_each=persistent_volume_source.value.localcontent {
# path - (optional) is a type of stringpath=local.value["path"]
}
}
dynamic"nfs" {
for_each=persistent_volume_source.value.nfscontent {
# path - (required) is a type of stringpath=nfs.value["path"]
# read_only - (optional) is a type of boolread_only=nfs.value["read_only"]
# server - (required) is a type of stringserver=nfs.value["server"]
}
}
dynamic"photon_persistent_disk" {
for_each=persistent_volume_source.value.photon_persistent_diskcontent {
# fs_type - (optional) is a type of stringfs_type=photon_persistent_disk.value["fs_type"]
# pd_id - (required) is a type of stringpd_id=photon_persistent_disk.value["pd_id"]
}
}
dynamic"quobyte" {
for_each=persistent_volume_source.value.quobytecontent {
# group - (optional) is a type of stringgroup=quobyte.value["group"]
# read_only - (optional) is a type of boolread_only=quobyte.value["read_only"]
# registry - (required) is a type of stringregistry=quobyte.value["registry"]
# user - (optional) is a type of stringuser=quobyte.value["user"]
# volume - (required) is a type of stringvolume=quobyte.value["volume"]
}
}
dynamic"rbd" {
for_each=persistent_volume_source.value.rbdcontent {
# ceph_monitors - (required) is a type of set of stringceph_monitors=rbd.value["ceph_monitors"]
# fs_type - (optional) is a type of stringfs_type=rbd.value["fs_type"]
# keyring - (optional) is a type of stringkeyring=rbd.value["keyring"]
# rados_user - (optional) is a type of stringrados_user=rbd.value["rados_user"]
# rbd_image - (required) is a type of stringrbd_image=rbd.value["rbd_image"]
# rbd_pool - (optional) is a type of stringrbd_pool=rbd.value["rbd_pool"]
# read_only - (optional) is a type of boolread_only=rbd.value["read_only"]
dynamic"secret_ref" {
for_each=rbd.value.secret_refcontent {
# name - (optional) is a type of stringname=secret_ref.value["name"]
# namespace - (optional) is a type of stringnamespace=secret_ref.value["namespace"]
}
}
}
}
dynamic"vsphere_volume" {
for_each=persistent_volume_source.value.vsphere_volumecontent {
# fs_type - (optional) is a type of stringfs_type=vsphere_volume.value["fs_type"]
# volume_path - (required) is a type of stringvolume_path=vsphere_volume.value["volume_path"]
}
}
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
}
}
}