1
0
mirror of https://github.com/rancher/types.git synced 2025-07-19 07:46:25 +00:00

Generated changes

This commit is contained in:
rajashree 2019-11-13 14:40:05 -08:00 committed by Alena Prokharchyk
parent 5fa48624b5
commit a0d18782c0
46 changed files with 831 additions and 11 deletions

View File

@ -3081,6 +3081,57 @@ func (in *ExportOutput) DeepCopy() *ExportOutput {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ExtraEnv) DeepCopyInto(out *ExtraEnv) {
*out = *in
in.EnvVar.DeepCopyInto(&out.EnvVar)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraEnv.
func (in *ExtraEnv) DeepCopy() *ExtraEnv {
if in == nil {
return nil
}
out := new(ExtraEnv)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ExtraVolume) DeepCopyInto(out *ExtraVolume) {
*out = *in
in.Volume.DeepCopyInto(&out.Volume)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraVolume.
func (in *ExtraVolume) DeepCopy() *ExtraVolume {
if in == nil {
return nil
}
out := new(ExtraVolume)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ExtraVolumeMount) DeepCopyInto(out *ExtraVolumeMount) {
*out = *in
in.VolumeMount.DeepCopyInto(&out.VolumeMount)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraVolumeMount.
func (in *ExtraVolumeMount) DeepCopy() *ExtraVolumeMount {
if in == nil {
return nil
}
out := new(ExtraVolumeMount)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Feature) DeepCopyInto(out *Feature) {
*out = *in
@ -4080,6 +4131,27 @@ func (in *IngressConfig) DeepCopyInto(out *IngressConfig) {
(*out)[key] = val
}
}
if in.ExtraEnvs != nil {
in, out := &in.ExtraEnvs, &out.ExtraEnvs
*out = make([]ExtraEnv, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.ExtraVolumes != nil {
in, out := &in.ExtraVolumes, &out.ExtraVolumes
*out = make([]ExtraVolume, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.ExtraVolumeMounts != nil {
in, out := &in.ExtraVolumeMounts, &out.ExtraVolumeMounts
*out = make([]ExtraVolumeMount, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
}

View File

@ -0,0 +1,16 @@
package client
const (
AWSElasticBlockStoreVolumeSourceType = "awsElasticBlockStoreVolumeSource"
AWSElasticBlockStoreVolumeSourceFieldFSType = "fsType"
AWSElasticBlockStoreVolumeSourceFieldPartition = "partition"
AWSElasticBlockStoreVolumeSourceFieldReadOnly = "readOnly"
AWSElasticBlockStoreVolumeSourceFieldVolumeID = "volumeID"
)
type AWSElasticBlockStoreVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Partition int64 `json:"partition,omitempty" yaml:"partition,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
VolumeID string `json:"volumeID,omitempty" yaml:"volumeID,omitempty"`
}

View File

@ -0,0 +1,20 @@
package client
const (
AzureDiskVolumeSourceType = "azureDiskVolumeSource"
AzureDiskVolumeSourceFieldCachingMode = "cachingMode"
AzureDiskVolumeSourceFieldDataDiskURI = "diskURI"
AzureDiskVolumeSourceFieldDiskName = "diskName"
AzureDiskVolumeSourceFieldFSType = "fsType"
AzureDiskVolumeSourceFieldKind = "kind"
AzureDiskVolumeSourceFieldReadOnly = "readOnly"
)
type AzureDiskVolumeSource struct {
CachingMode string `json:"cachingMode,omitempty" yaml:"cachingMode,omitempty"`
DataDiskURI string `json:"diskURI,omitempty" yaml:"diskURI,omitempty"`
DiskName string `json:"diskName,omitempty" yaml:"diskName,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Kind string `json:"kind,omitempty" yaml:"kind,omitempty"`
ReadOnly *bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
AzureFileVolumeSourceType = "azureFileVolumeSource"
AzureFileVolumeSourceFieldReadOnly = "readOnly"
AzureFileVolumeSourceFieldSecretName = "secretName"
AzureFileVolumeSourceFieldShareName = "shareName"
)
type AzureFileVolumeSource struct {
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretName string `json:"secretName,omitempty" yaml:"secretName,omitempty"`
ShareName string `json:"shareName,omitempty" yaml:"shareName,omitempty"`
}

View File

@ -0,0 +1,20 @@
package client
const (
CephFSVolumeSourceType = "cephFSVolumeSource"
CephFSVolumeSourceFieldMonitors = "monitors"
CephFSVolumeSourceFieldPath = "path"
CephFSVolumeSourceFieldReadOnly = "readOnly"
CephFSVolumeSourceFieldSecretFile = "secretFile"
CephFSVolumeSourceFieldSecretRef = "secretRef"
CephFSVolumeSourceFieldUser = "user"
)
type CephFSVolumeSource struct {
Monitors []string `json:"monitors,omitempty" yaml:"monitors,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretFile string `json:"secretFile,omitempty" yaml:"secretFile,omitempty"`
SecretRef *LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
User string `json:"user,omitempty" yaml:"user,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
CinderVolumeSourceType = "cinderVolumeSource"
CinderVolumeSourceFieldFSType = "fsType"
CinderVolumeSourceFieldReadOnly = "readOnly"
CinderVolumeSourceFieldSecretRef = "secretRef"
CinderVolumeSourceFieldVolumeID = "volumeID"
)
type CinderVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretRef *LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
VolumeID string `json:"volumeID,omitempty" yaml:"volumeID,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
ConfigMapKeySelectorType = "configMapKeySelector"
ConfigMapKeySelectorFieldKey = "key"
ConfigMapKeySelectorFieldName = "name"
ConfigMapKeySelectorFieldOptional = "optional"
)
type ConfigMapKeySelector struct {
Key string `json:"key,omitempty" yaml:"key,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Optional *bool `json:"optional,omitempty" yaml:"optional,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
ConfigMapProjectionType = "configMapProjection"
ConfigMapProjectionFieldItems = "items"
ConfigMapProjectionFieldName = "name"
ConfigMapProjectionFieldOptional = "optional"
)
type ConfigMapProjection struct {
Items []KeyToPath `json:"items,omitempty" yaml:"items,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Optional *bool `json:"optional,omitempty" yaml:"optional,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
ConfigMapVolumeSourceType = "configMapVolumeSource"
ConfigMapVolumeSourceFieldDefaultMode = "defaultMode"
ConfigMapVolumeSourceFieldItems = "items"
ConfigMapVolumeSourceFieldName = "name"
ConfigMapVolumeSourceFieldOptional = "optional"
)
type ConfigMapVolumeSource struct {
DefaultMode *int64 `json:"defaultMode,omitempty" yaml:"defaultMode,omitempty"`
Items []KeyToPath `json:"items,omitempty" yaml:"items,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Optional *bool `json:"optional,omitempty" yaml:"optional,omitempty"`
}

View File

@ -0,0 +1,18 @@
package client
const (
CSIVolumeSourceType = "csiVolumeSource"
CSIVolumeSourceFieldDriver = "driver"
CSIVolumeSourceFieldFSType = "fsType"
CSIVolumeSourceFieldNodePublishSecretRef = "nodePublishSecretRef"
CSIVolumeSourceFieldReadOnly = "readOnly"
CSIVolumeSourceFieldVolumeAttributes = "volumeAttributes"
)
type CSIVolumeSource struct {
Driver string `json:"driver,omitempty" yaml:"driver,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
NodePublishSecretRef *LocalObjectReference `json:"nodePublishSecretRef,omitempty" yaml:"nodePublishSecretRef,omitempty"`
ReadOnly *bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
VolumeAttributes map[string]string `json:"volumeAttributes,omitempty" yaml:"volumeAttributes,omitempty"`
}

View File

@ -0,0 +1,10 @@
package client
const (
DownwardAPIProjectionType = "downwardAPIProjection"
DownwardAPIProjectionFieldItems = "items"
)
type DownwardAPIProjection struct {
Items []DownwardAPIVolumeFile `json:"items,omitempty" yaml:"items,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
DownwardAPIVolumeFileType = "downwardAPIVolumeFile"
DownwardAPIVolumeFileFieldFieldRef = "fieldRef"
DownwardAPIVolumeFileFieldMode = "mode"
DownwardAPIVolumeFileFieldPath = "path"
DownwardAPIVolumeFileFieldResourceFieldRef = "resourceFieldRef"
)
type DownwardAPIVolumeFile struct {
FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" yaml:"fieldRef,omitempty"`
Mode *int64 `json:"mode,omitempty" yaml:"mode,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" yaml:"resourceFieldRef,omitempty"`
}

View File

@ -0,0 +1,12 @@
package client
const (
DownwardAPIVolumeSourceType = "downwardAPIVolumeSource"
DownwardAPIVolumeSourceFieldDefaultMode = "defaultMode"
DownwardAPIVolumeSourceFieldItems = "items"
)
type DownwardAPIVolumeSource struct {
DefaultMode *int64 `json:"defaultMode,omitempty" yaml:"defaultMode,omitempty"`
Items []DownwardAPIVolumeFile `json:"items,omitempty" yaml:"items,omitempty"`
}

View File

@ -0,0 +1,12 @@
package client
const (
EmptyDirVolumeSourceType = "emptyDirVolumeSource"
EmptyDirVolumeSourceFieldMedium = "medium"
EmptyDirVolumeSourceFieldSizeLimit = "sizeLimit"
)
type EmptyDirVolumeSource struct {
Medium string `json:"medium,omitempty" yaml:"medium,omitempty"`
SizeLimit string `json:"sizeLimit,omitempty" yaml:"sizeLimit,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
EnvVarSourceType = "envVarSource"
EnvVarSourceFieldConfigMapKeyRef = "configMapKeyRef"
EnvVarSourceFieldFieldRef = "fieldRef"
EnvVarSourceFieldResourceFieldRef = "resourceFieldRef"
EnvVarSourceFieldSecretKeyRef = "secretKeyRef"
)
type EnvVarSource struct {
ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty" yaml:"configMapKeyRef,omitempty"`
FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" yaml:"fieldRef,omitempty"`
ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" yaml:"resourceFieldRef,omitempty"`
SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty" yaml:"secretKeyRef,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
ExtraEnvType = "extraEnv"
ExtraEnvFieldName = "name"
ExtraEnvFieldValue = "value"
ExtraEnvFieldValueFrom = "valueFrom"
)
type ExtraEnv struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Value string `json:"value,omitempty" yaml:"value,omitempty"`
ValueFrom *EnvVarSource `json:"valueFrom,omitempty" yaml:"valueFrom,omitempty"`
}

View File

@ -0,0 +1,66 @@
package client
const (
ExtraVolumeType = "extraVolume"
ExtraVolumeFieldAWSElasticBlockStore = "awsElasticBlockStore"
ExtraVolumeFieldAzureDisk = "azureDisk"
ExtraVolumeFieldAzureFile = "azureFile"
ExtraVolumeFieldCSI = "csi"
ExtraVolumeFieldCephFS = "cephfs"
ExtraVolumeFieldCinder = "cinder"
ExtraVolumeFieldConfigMap = "configMap"
ExtraVolumeFieldDownwardAPI = "downwardAPI"
ExtraVolumeFieldEmptyDir = "emptyDir"
ExtraVolumeFieldFC = "fc"
ExtraVolumeFieldFlexVolume = "flexVolume"
ExtraVolumeFieldFlocker = "flocker"
ExtraVolumeFieldGCEPersistentDisk = "gcePersistentDisk"
ExtraVolumeFieldGitRepo = "gitRepo"
ExtraVolumeFieldGlusterfs = "glusterfs"
ExtraVolumeFieldHostPath = "hostPath"
ExtraVolumeFieldISCSI = "iscsi"
ExtraVolumeFieldNFS = "nfs"
ExtraVolumeFieldName = "name"
ExtraVolumeFieldPersistentVolumeClaim = "persistentVolumeClaim"
ExtraVolumeFieldPhotonPersistentDisk = "photonPersistentDisk"
ExtraVolumeFieldPortworxVolume = "portworxVolume"
ExtraVolumeFieldProjected = "projected"
ExtraVolumeFieldQuobyte = "quobyte"
ExtraVolumeFieldRBD = "rbd"
ExtraVolumeFieldScaleIO = "scaleIO"
ExtraVolumeFieldSecret = "secret"
ExtraVolumeFieldStorageOS = "storageos"
ExtraVolumeFieldVsphereVolume = "vsphereVolume"
)
type ExtraVolume struct {
AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty" yaml:"awsElasticBlockStore,omitempty"`
AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" yaml:"azureDisk,omitempty"`
AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty" yaml:"azureFile,omitempty"`
CSI *CSIVolumeSource `json:"csi,omitempty" yaml:"csi,omitempty"`
CephFS *CephFSVolumeSource `json:"cephfs,omitempty" yaml:"cephfs,omitempty"`
Cinder *CinderVolumeSource `json:"cinder,omitempty" yaml:"cinder,omitempty"`
ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty" yaml:"configMap,omitempty"`
DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty" yaml:"downwardAPI,omitempty"`
EmptyDir *EmptyDirVolumeSource `json:"emptyDir,omitempty" yaml:"emptyDir,omitempty"`
FC *FCVolumeSource `json:"fc,omitempty" yaml:"fc,omitempty"`
FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty" yaml:"flexVolume,omitempty"`
Flocker *FlockerVolumeSource `json:"flocker,omitempty" yaml:"flocker,omitempty"`
GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty" yaml:"gcePersistentDisk,omitempty"`
GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty" yaml:"gitRepo,omitempty"`
Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty" yaml:"glusterfs,omitempty"`
HostPath *HostPathVolumeSource `json:"hostPath,omitempty" yaml:"hostPath,omitempty"`
ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty" yaml:"iscsi,omitempty"`
NFS *NFSVolumeSource `json:"nfs,omitempty" yaml:"nfs,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty" yaml:"persistentVolumeClaim,omitempty"`
PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty" yaml:"photonPersistentDisk,omitempty"`
PortworxVolume *PortworxVolumeSource `json:"portworxVolume,omitempty" yaml:"portworxVolume,omitempty"`
Projected *ProjectedVolumeSource `json:"projected,omitempty" yaml:"projected,omitempty"`
Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty" yaml:"quobyte,omitempty"`
RBD *RBDVolumeSource `json:"rbd,omitempty" yaml:"rbd,omitempty"`
ScaleIO *ScaleIOVolumeSource `json:"scaleIO,omitempty" yaml:"scaleIO,omitempty"`
Secret *SecretVolumeSource `json:"secret,omitempty" yaml:"secret,omitempty"`
StorageOS *StorageOSVolumeSource `json:"storageos,omitempty" yaml:"storageos,omitempty"`
VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" yaml:"vsphereVolume,omitempty"`
}

View File

@ -0,0 +1,20 @@
package client
const (
ExtraVolumeMountType = "extraVolumeMount"
ExtraVolumeMountFieldMountPath = "mountPath"
ExtraVolumeMountFieldMountPropagation = "mountPropagation"
ExtraVolumeMountFieldName = "name"
ExtraVolumeMountFieldReadOnly = "readOnly"
ExtraVolumeMountFieldSubPath = "subPath"
ExtraVolumeMountFieldSubPathExpr = "subPathExpr"
)
type ExtraVolumeMount struct {
MountPath string `json:"mountPath,omitempty" yaml:"mountPath,omitempty"`
MountPropagation string `json:"mountPropagation,omitempty" yaml:"mountPropagation,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SubPath string `json:"subPath,omitempty" yaml:"subPath,omitempty"`
SubPathExpr string `json:"subPathExpr,omitempty" yaml:"subPathExpr,omitempty"`
}

View File

@ -0,0 +1,18 @@
package client
const (
FCVolumeSourceType = "fcVolumeSource"
FCVolumeSourceFieldFSType = "fsType"
FCVolumeSourceFieldLun = "lun"
FCVolumeSourceFieldReadOnly = "readOnly"
FCVolumeSourceFieldTargetWWNs = "targetWWNs"
FCVolumeSourceFieldWWIDs = "wwids"
)
type FCVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Lun *int64 `json:"lun,omitempty" yaml:"lun,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
TargetWWNs []string `json:"targetWWNs,omitempty" yaml:"targetWWNs,omitempty"`
WWIDs []string `json:"wwids,omitempty" yaml:"wwids,omitempty"`
}

View File

@ -0,0 +1,18 @@
package client
const (
FlexVolumeSourceType = "flexVolumeSource"
FlexVolumeSourceFieldDriver = "driver"
FlexVolumeSourceFieldFSType = "fsType"
FlexVolumeSourceFieldOptions = "options"
FlexVolumeSourceFieldReadOnly = "readOnly"
FlexVolumeSourceFieldSecretRef = "secretRef"
)
type FlexVolumeSource struct {
Driver string `json:"driver,omitempty" yaml:"driver,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Options map[string]string `json:"options,omitempty" yaml:"options,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretRef *LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
}

View File

@ -0,0 +1,12 @@
package client
const (
FlockerVolumeSourceType = "flockerVolumeSource"
FlockerVolumeSourceFieldDatasetName = "datasetName"
FlockerVolumeSourceFieldDatasetUUID = "datasetUUID"
)
type FlockerVolumeSource struct {
DatasetName string `json:"datasetName,omitempty" yaml:"datasetName,omitempty"`
DatasetUUID string `json:"datasetUUID,omitempty" yaml:"datasetUUID,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
GCEPersistentDiskVolumeSourceType = "gcePersistentDiskVolumeSource"
GCEPersistentDiskVolumeSourceFieldFSType = "fsType"
GCEPersistentDiskVolumeSourceFieldPDName = "pdName"
GCEPersistentDiskVolumeSourceFieldPartition = "partition"
GCEPersistentDiskVolumeSourceFieldReadOnly = "readOnly"
)
type GCEPersistentDiskVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
PDName string `json:"pdName,omitempty" yaml:"pdName,omitempty"`
Partition int64 `json:"partition,omitempty" yaml:"partition,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
GitRepoVolumeSourceType = "gitRepoVolumeSource"
GitRepoVolumeSourceFieldDirectory = "directory"
GitRepoVolumeSourceFieldRepository = "repository"
GitRepoVolumeSourceFieldRevision = "revision"
)
type GitRepoVolumeSource struct {
Directory string `json:"directory,omitempty" yaml:"directory,omitempty"`
Repository string `json:"repository,omitempty" yaml:"repository,omitempty"`
Revision string `json:"revision,omitempty" yaml:"revision,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
GlusterfsVolumeSourceType = "glusterfsVolumeSource"
GlusterfsVolumeSourceFieldEndpointsName = "endpoints"
GlusterfsVolumeSourceFieldPath = "path"
GlusterfsVolumeSourceFieldReadOnly = "readOnly"
)
type GlusterfsVolumeSource struct {
EndpointsName string `json:"endpoints,omitempty" yaml:"endpoints,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
}

View File

@ -0,0 +1,12 @@
package client
const (
HostPathVolumeSourceType = "hostPathVolumeSource"
HostPathVolumeSourceFieldPath = "path"
HostPathVolumeSourceFieldType = "type"
)
type HostPathVolumeSource struct {
Path string `json:"path,omitempty" yaml:"path,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
}

View File

@ -1,18 +1,24 @@
package client
const (
IngressConfigType = "ingressConfig"
IngressConfigFieldDNSPolicy = "dnsPolicy"
IngressConfigFieldExtraArgs = "extraArgs"
IngressConfigFieldNodeSelector = "nodeSelector"
IngressConfigFieldOptions = "options"
IngressConfigFieldProvider = "provider"
IngressConfigType = "ingressConfig"
IngressConfigFieldDNSPolicy = "dnsPolicy"
IngressConfigFieldExtraArgs = "extraArgs"
IngressConfigFieldExtraEnvs = "extraEnvs"
IngressConfigFieldExtraVolumeMounts = "extraVolumeMounts"
IngressConfigFieldExtraVolumes = "extraVolumes"
IngressConfigFieldNodeSelector = "nodeSelector"
IngressConfigFieldOptions = "options"
IngressConfigFieldProvider = "provider"
)
type IngressConfig struct {
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
Options map[string]string `json:"options,omitempty" yaml:"options,omitempty"`
Provider string `json:"provider,omitempty" yaml:"provider,omitempty"`
DNSPolicy string `json:"dnsPolicy,omitempty" yaml:"dnsPolicy,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
ExtraEnvs []interface{} `json:"extraEnvs,omitempty" yaml:"extraEnvs,omitempty"`
ExtraVolumeMounts []interface{} `json:"extraVolumeMounts,omitempty" yaml:"extraVolumeMounts,omitempty"`
ExtraVolumes []interface{} `json:"extraVolumes,omitempty" yaml:"extraVolumes,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
Options map[string]string `json:"options,omitempty" yaml:"options,omitempty"`
Provider string `json:"provider,omitempty" yaml:"provider,omitempty"`
}

View File

@ -0,0 +1,30 @@
package client
const (
ISCSIVolumeSourceType = "iscsiVolumeSource"
ISCSIVolumeSourceFieldDiscoveryCHAPAuth = "chapAuthDiscovery"
ISCSIVolumeSourceFieldFSType = "fsType"
ISCSIVolumeSourceFieldIQN = "iqn"
ISCSIVolumeSourceFieldISCSIInterface = "iscsiInterface"
ISCSIVolumeSourceFieldInitiatorName = "initiatorName"
ISCSIVolumeSourceFieldLun = "lun"
ISCSIVolumeSourceFieldPortals = "portals"
ISCSIVolumeSourceFieldReadOnly = "readOnly"
ISCSIVolumeSourceFieldSecretRef = "secretRef"
ISCSIVolumeSourceFieldSessionCHAPAuth = "chapAuthSession"
ISCSIVolumeSourceFieldTargetPortal = "targetPortal"
)
type ISCSIVolumeSource struct {
DiscoveryCHAPAuth bool `json:"chapAuthDiscovery,omitempty" yaml:"chapAuthDiscovery,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
IQN string `json:"iqn,omitempty" yaml:"iqn,omitempty"`
ISCSIInterface string `json:"iscsiInterface,omitempty" yaml:"iscsiInterface,omitempty"`
InitiatorName string `json:"initiatorName,omitempty" yaml:"initiatorName,omitempty"`
Lun int64 `json:"lun,omitempty" yaml:"lun,omitempty"`
Portals []string `json:"portals,omitempty" yaml:"portals,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretRef *LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
SessionCHAPAuth bool `json:"chapAuthSession,omitempty" yaml:"chapAuthSession,omitempty"`
TargetPortal string `json:"targetPortal,omitempty" yaml:"targetPortal,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
KeyToPathType = "keyToPath"
KeyToPathFieldKey = "key"
KeyToPathFieldMode = "mode"
KeyToPathFieldPath = "path"
)
type KeyToPath struct {
Key string `json:"key,omitempty" yaml:"key,omitempty"`
Mode *int64 `json:"mode,omitempty" yaml:"mode,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
}

View File

@ -0,0 +1,10 @@
package client
const (
LocalObjectReferenceType = "localObjectReference"
LocalObjectReferenceFieldName = "name"
)
type LocalObjectReference struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
NFSVolumeSourceType = "nfsVolumeSource"
NFSVolumeSourceFieldPath = "path"
NFSVolumeSourceFieldReadOnly = "readOnly"
NFSVolumeSourceFieldServer = "server"
)
type NFSVolumeSource struct {
Path string `json:"path,omitempty" yaml:"path,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
Server string `json:"server,omitempty" yaml:"server,omitempty"`
}

View File

@ -0,0 +1,12 @@
package client
const (
ObjectFieldSelectorType = "objectFieldSelector"
ObjectFieldSelectorFieldAPIVersion = "apiVersion"
ObjectFieldSelectorFieldFieldPath = "fieldPath"
)
type ObjectFieldSelector struct {
APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
FieldPath string `json:"fieldPath,omitempty" yaml:"fieldPath,omitempty"`
}

View File

@ -0,0 +1,12 @@
package client
const (
PersistentVolumeClaimVolumeSourceType = "persistentVolumeClaimVolumeSource"
PersistentVolumeClaimVolumeSourceFieldClaimName = "claimName"
PersistentVolumeClaimVolumeSourceFieldReadOnly = "readOnly"
)
type PersistentVolumeClaimVolumeSource struct {
ClaimName string `json:"claimName,omitempty" yaml:"claimName,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
}

View File

@ -0,0 +1,12 @@
package client
const (
PhotonPersistentDiskVolumeSourceType = "photonPersistentDiskVolumeSource"
PhotonPersistentDiskVolumeSourceFieldFSType = "fsType"
PhotonPersistentDiskVolumeSourceFieldPdID = "pdID"
)
type PhotonPersistentDiskVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
PdID string `json:"pdID,omitempty" yaml:"pdID,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
PortworxVolumeSourceType = "portworxVolumeSource"
PortworxVolumeSourceFieldFSType = "fsType"
PortworxVolumeSourceFieldReadOnly = "readOnly"
PortworxVolumeSourceFieldVolumeID = "volumeID"
)
type PortworxVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
VolumeID string `json:"volumeID,omitempty" yaml:"volumeID,omitempty"`
}

View File

@ -0,0 +1,12 @@
package client
const (
ProjectedVolumeSourceType = "projectedVolumeSource"
ProjectedVolumeSourceFieldDefaultMode = "defaultMode"
ProjectedVolumeSourceFieldSources = "sources"
)
type ProjectedVolumeSource struct {
DefaultMode *int64 `json:"defaultMode,omitempty" yaml:"defaultMode,omitempty"`
Sources []VolumeProjection `json:"sources,omitempty" yaml:"sources,omitempty"`
}

View File

@ -0,0 +1,20 @@
package client
const (
QuobyteVolumeSourceType = "quobyteVolumeSource"
QuobyteVolumeSourceFieldGroup = "group"
QuobyteVolumeSourceFieldReadOnly = "readOnly"
QuobyteVolumeSourceFieldRegistry = "registry"
QuobyteVolumeSourceFieldTenant = "tenant"
QuobyteVolumeSourceFieldUser = "user"
QuobyteVolumeSourceFieldVolume = "volume"
)
type QuobyteVolumeSource struct {
Group string `json:"group,omitempty" yaml:"group,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
Registry string `json:"registry,omitempty" yaml:"registry,omitempty"`
Tenant string `json:"tenant,omitempty" yaml:"tenant,omitempty"`
User string `json:"user,omitempty" yaml:"user,omitempty"`
Volume string `json:"volume,omitempty" yaml:"volume,omitempty"`
}

View File

@ -0,0 +1,24 @@
package client
const (
RBDVolumeSourceType = "rbdVolumeSource"
RBDVolumeSourceFieldCephMonitors = "monitors"
RBDVolumeSourceFieldFSType = "fsType"
RBDVolumeSourceFieldKeyring = "keyring"
RBDVolumeSourceFieldRBDImage = "image"
RBDVolumeSourceFieldRBDPool = "pool"
RBDVolumeSourceFieldRadosUser = "user"
RBDVolumeSourceFieldReadOnly = "readOnly"
RBDVolumeSourceFieldSecretRef = "secretRef"
)
type RBDVolumeSource struct {
CephMonitors []string `json:"monitors,omitempty" yaml:"monitors,omitempty"`
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Keyring string `json:"keyring,omitempty" yaml:"keyring,omitempty"`
RBDImage string `json:"image,omitempty" yaml:"image,omitempty"`
RBDPool string `json:"pool,omitempty" yaml:"pool,omitempty"`
RadosUser string `json:"user,omitempty" yaml:"user,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretRef *LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
ResourceFieldSelectorType = "resourceFieldSelector"
ResourceFieldSelectorFieldContainerName = "containerName"
ResourceFieldSelectorFieldDivisor = "divisor"
ResourceFieldSelectorFieldResource = "resource"
)
type ResourceFieldSelector struct {
ContainerName string `json:"containerName,omitempty" yaml:"containerName,omitempty"`
Divisor string `json:"divisor,omitempty" yaml:"divisor,omitempty"`
Resource string `json:"resource,omitempty" yaml:"resource,omitempty"`
}

View File

@ -0,0 +1,28 @@
package client
const (
ScaleIOVolumeSourceType = "scaleIOVolumeSource"
ScaleIOVolumeSourceFieldFSType = "fsType"
ScaleIOVolumeSourceFieldGateway = "gateway"
ScaleIOVolumeSourceFieldProtectionDomain = "protectionDomain"
ScaleIOVolumeSourceFieldReadOnly = "readOnly"
ScaleIOVolumeSourceFieldSSLEnabled = "sslEnabled"
ScaleIOVolumeSourceFieldSecretRef = "secretRef"
ScaleIOVolumeSourceFieldStorageMode = "storageMode"
ScaleIOVolumeSourceFieldStoragePool = "storagePool"
ScaleIOVolumeSourceFieldSystem = "system"
ScaleIOVolumeSourceFieldVolumeName = "volumeName"
)
type ScaleIOVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
Gateway string `json:"gateway,omitempty" yaml:"gateway,omitempty"`
ProtectionDomain string `json:"protectionDomain,omitempty" yaml:"protectionDomain,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SSLEnabled bool `json:"sslEnabled,omitempty" yaml:"sslEnabled,omitempty"`
SecretRef *LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
StorageMode string `json:"storageMode,omitempty" yaml:"storageMode,omitempty"`
StoragePool string `json:"storagePool,omitempty" yaml:"storagePool,omitempty"`
System string `json:"system,omitempty" yaml:"system,omitempty"`
VolumeName string `json:"volumeName,omitempty" yaml:"volumeName,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
SecretKeySelectorType = "secretKeySelector"
SecretKeySelectorFieldKey = "key"
SecretKeySelectorFieldName = "name"
SecretKeySelectorFieldOptional = "optional"
)
type SecretKeySelector struct {
Key string `json:"key,omitempty" yaml:"key,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Optional *bool `json:"optional,omitempty" yaml:"optional,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
SecretProjectionType = "secretProjection"
SecretProjectionFieldItems = "items"
SecretProjectionFieldName = "name"
SecretProjectionFieldOptional = "optional"
)
type SecretProjection struct {
Items []KeyToPath `json:"items,omitempty" yaml:"items,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Optional *bool `json:"optional,omitempty" yaml:"optional,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
SecretVolumeSourceType = "secretVolumeSource"
SecretVolumeSourceFieldDefaultMode = "defaultMode"
SecretVolumeSourceFieldItems = "items"
SecretVolumeSourceFieldOptional = "optional"
SecretVolumeSourceFieldSecretName = "secretName"
)
type SecretVolumeSource struct {
DefaultMode *int64 `json:"defaultMode,omitempty" yaml:"defaultMode,omitempty"`
Items []KeyToPath `json:"items,omitempty" yaml:"items,omitempty"`
Optional *bool `json:"optional,omitempty" yaml:"optional,omitempty"`
SecretName string `json:"secretName,omitempty" yaml:"secretName,omitempty"`
}

View File

@ -0,0 +1,14 @@
package client
const (
ServiceAccountTokenProjectionType = "serviceAccountTokenProjection"
ServiceAccountTokenProjectionFieldAudience = "audience"
ServiceAccountTokenProjectionFieldExpirationSeconds = "expirationSeconds"
ServiceAccountTokenProjectionFieldPath = "path"
)
type ServiceAccountTokenProjection struct {
Audience string `json:"audience,omitempty" yaml:"audience,omitempty"`
ExpirationSeconds *int64 `json:"expirationSeconds,omitempty" yaml:"expirationSeconds,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
}

View File

@ -0,0 +1,18 @@
package client
const (
StorageOSVolumeSourceType = "storageOSVolumeSource"
StorageOSVolumeSourceFieldFSType = "fsType"
StorageOSVolumeSourceFieldReadOnly = "readOnly"
StorageOSVolumeSourceFieldSecretRef = "secretRef"
StorageOSVolumeSourceFieldVolumeName = "volumeName"
StorageOSVolumeSourceFieldVolumeNamespace = "volumeNamespace"
)
type StorageOSVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"`
SecretRef *LocalObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"`
VolumeName string `json:"volumeName,omitempty" yaml:"volumeName,omitempty"`
VolumeNamespace string `json:"volumeNamespace,omitempty" yaml:"volumeNamespace,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
VolumeProjectionType = "volumeProjection"
VolumeProjectionFieldConfigMap = "configMap"
VolumeProjectionFieldDownwardAPI = "downwardAPI"
VolumeProjectionFieldSecret = "secret"
VolumeProjectionFieldServiceAccountToken = "serviceAccountToken"
)
type VolumeProjection struct {
ConfigMap *ConfigMapProjection `json:"configMap,omitempty" yaml:"configMap,omitempty"`
DownwardAPI *DownwardAPIProjection `json:"downwardAPI,omitempty" yaml:"downwardAPI,omitempty"`
Secret *SecretProjection `json:"secret,omitempty" yaml:"secret,omitempty"`
ServiceAccountToken *ServiceAccountTokenProjection `json:"serviceAccountToken,omitempty" yaml:"serviceAccountToken,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
VsphereVirtualDiskVolumeSourceType = "vsphereVirtualDiskVolumeSource"
VsphereVirtualDiskVolumeSourceFieldFSType = "fsType"
VsphereVirtualDiskVolumeSourceFieldStoragePolicyID = "storagePolicyID"
VsphereVirtualDiskVolumeSourceFieldStoragePolicyName = "storagePolicyName"
VsphereVirtualDiskVolumeSourceFieldVolumePath = "volumePath"
)
type VsphereVirtualDiskVolumeSource struct {
FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"`
StoragePolicyID string `json:"storagePolicyID,omitempty" yaml:"storagePolicyID,omitempty"`
StoragePolicyName string `json:"storagePolicyName,omitempty" yaml:"storagePolicyName,omitempty"`
VolumePath string `json:"volumePath,omitempty" yaml:"volumePath,omitempty"`
}