forked from kubernetes-client/go
/
v1_iscsi_volume_source.go
47 lines (34 loc) · 2.09 KB
/
v1_iscsi_volume_source.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
type V1IscsiVolumeSource struct {
// whether support iSCSI Discovery CHAP authentication
ChapAuthDiscovery bool `json:"chapAuthDiscovery,omitempty"`
// whether support iSCSI Session CHAP authentication
ChapAuthSession bool `json:"chapAuthSession,omitempty"`
// 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
FsType string `json:"fsType,omitempty"`
// Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.
InitiatorName string `json:"initiatorName,omitempty"`
// Target iSCSI Qualified Name.
Iqn string `json:"iqn"`
// iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).
IscsiInterface string `json:"iscsiInterface,omitempty"`
// iSCSI Target Lun number.
Lun int32 `json:"lun"`
// 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).
Portals []string `json:"portals,omitempty"`
// ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
ReadOnly bool `json:"readOnly,omitempty"`
// CHAP Secret for iSCSI target and initiator authentication
SecretRef *V1LocalObjectReference `json:"secretRef,omitempty"`
// iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
TargetPortal string `json:"targetPortal"`
}