Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the V1Volume class.
 /// </summary>
 /// <param name="name">Volume's name. Must be a DNS_LABEL and unique
 /// within the pod. More info:
 /// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names</param>
 /// <param name="awsElasticBlockStore">AWSElasticBlockStore represents
 /// an AWS Disk resource that is attached to a kubelet's host machine
 /// and then exposed to the pod. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore</param>
 /// <param name="azureDisk">AzureDisk represents an Azure Data Disk
 /// mount on the host and bind mount to the pod.</param>
 /// <param name="azureFile">AzureFile represents an Azure File Service
 /// mount on the host and bind mount to the pod.</param>
 /// <param name="cephfs">CephFS represents a Ceph FS mount on the host
 /// that shares a pod's lifetime</param>
 /// <param name="cinder">Cinder represents a cinder volume attached and
 /// mounted on kubelets host machine. More info:
 /// https://examples.k8s.io/mysql-cinder-pd/README.md</param>
 /// <param name="configMap">ConfigMap represents a configMap that
 /// should populate this volume</param>
 /// <param name="csi">CSI (Container Storage Interface) represents
 /// storage that is handled by an external CSI driver (Alpha
 /// feature).</param>
 /// <param name="downwardAPI">DownwardAPI represents downward API about
 /// the pod that should populate this volume</param>
 /// <param name="emptyDir">EmptyDir represents a temporary directory
 /// that shares a pod's lifetime. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#emptydir</param>
 /// <param name="fc">FC represents a Fibre Channel resource that is
 /// attached to a kubelet's host machine and then exposed to the
 /// pod.</param>
 /// <param name="flexVolume">FlexVolume represents a generic volume
 /// resource that is provisioned/attached using an exec based
 /// plugin.</param>
 /// <param name="flocker">Flocker represents a Flocker volume attached
 /// to a kubelet's host machine. This depends on the Flocker control
 /// service being running</param>
 /// <param name="gcePersistentDisk">GCEPersistentDisk represents a GCE
 /// Disk resource that is attached to a kubelet's host machine and then
 /// exposed to the pod. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk</param>
 /// <param name="gitRepo">GitRepo represents a git repository at a
 /// particular revision. DEPRECATED: GitRepo is deprecated. To
 /// provision a container with a git repo, mount an EmptyDir into an
 /// InitContainer that clones the repo using git, then mount the
 /// EmptyDir into the Pod's container.</param>
 /// <param name="glusterfs">Glusterfs represents a Glusterfs mount on
 /// the host that shares a pod's lifetime. More info:
 /// https://examples.k8s.io/volumes/glusterfs/README.md</param>
 /// <param name="hostPath">HostPath represents a pre-existing file or
 /// directory on the host machine that is directly exposed to the
 /// container. This is generally used for system agents or other
 /// privileged things that are allowed to see the host machine. Most
 /// containers will NOT need this. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#hostpath</param>
 /// <param name="iscsi">ISCSI represents an ISCSI Disk resource that is
 /// attached to a kubelet's host machine and then exposed to the pod.
 /// More info: https://examples.k8s.io/volumes/iscsi/README.md</param>
 /// <param name="nfs">NFS represents an NFS mount on the host that
 /// shares a pod's lifetime More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#nfs</param>
 /// <param
 /// name="persistentVolumeClaim">PersistentVolumeClaimVolumeSource
 /// represents a reference to a PersistentVolumeClaim in the same
 /// namespace. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims</param>
 /// <param name="photonPersistentDisk">PhotonPersistentDisk represents
 /// a PhotonController persistent disk attached and mounted on kubelets
 /// host machine</param>
 /// <param name="portworxVolume">PortworxVolume represents a portworx
 /// volume attached and mounted on kubelets host machine</param>
 /// <param name="projected">Items for all in one resources secrets,
 /// configmaps, and downward API</param>
 /// <param name="quobyte">Quobyte represents a Quobyte mount on the
 /// host that shares a pod's lifetime</param>
 /// <param name="rbd">RBD represents a Rados Block Device mount on the
 /// host that shares a pod's lifetime. More info:
 /// https://examples.k8s.io/volumes/rbd/README.md</param>
 /// <param name="scaleIO">ScaleIO represents a ScaleIO persistent
 /// volume attached and mounted on Kubernetes nodes.</param>
 /// <param name="secret">Secret represents a secret that should
 /// populate this volume. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#secret</param>
 /// <param name="storageos">StorageOS represents a StorageOS volume
 /// attached and mounted on Kubernetes nodes.</param>
 /// <param name="vsphereVolume">VsphereVolume represents a vSphere
 /// volume attached and mounted on kubelets host machine</param>
 public V1Volume(string name, V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = default(V1AWSElasticBlockStoreVolumeSource), V1AzureDiskVolumeSource azureDisk = default(V1AzureDiskVolumeSource), V1AzureFileVolumeSource azureFile = default(V1AzureFileVolumeSource), V1CephFSVolumeSource cephfs = default(V1CephFSVolumeSource), V1CinderVolumeSource cinder = default(V1CinderVolumeSource), V1ConfigMapVolumeSource configMap = default(V1ConfigMapVolumeSource), V1CSIVolumeSource csi = default(V1CSIVolumeSource), V1DownwardAPIVolumeSource downwardAPI = default(V1DownwardAPIVolumeSource), V1EmptyDirVolumeSource emptyDir = default(V1EmptyDirVolumeSource), V1FCVolumeSource fc = default(V1FCVolumeSource), V1FlexVolumeSource flexVolume = default(V1FlexVolumeSource), V1FlockerVolumeSource flocker = default(V1FlockerVolumeSource), V1GCEPersistentDiskVolumeSource gcePersistentDisk = default(V1GCEPersistentDiskVolumeSource), V1GitRepoVolumeSource gitRepo = default(V1GitRepoVolumeSource), V1GlusterfsVolumeSource glusterfs = default(V1GlusterfsVolumeSource), V1HostPathVolumeSource hostPath = default(V1HostPathVolumeSource), V1ISCSIVolumeSource iscsi = default(V1ISCSIVolumeSource), V1NFSVolumeSource nfs = default(V1NFSVolumeSource), V1PersistentVolumeClaimVolumeSource persistentVolumeClaim = default(V1PersistentVolumeClaimVolumeSource), V1PhotonPersistentDiskVolumeSource photonPersistentDisk = default(V1PhotonPersistentDiskVolumeSource), V1PortworxVolumeSource portworxVolume = default(V1PortworxVolumeSource), V1ProjectedVolumeSource projected = default(V1ProjectedVolumeSource), V1QuobyteVolumeSource quobyte = default(V1QuobyteVolumeSource), V1RBDVolumeSource rbd = default(V1RBDVolumeSource), V1ScaleIOVolumeSource scaleIO = default(V1ScaleIOVolumeSource), V1SecretVolumeSource secret = default(V1SecretVolumeSource), V1StorageOSVolumeSource storageos = default(V1StorageOSVolumeSource), V1VsphereVirtualDiskVolumeSource vsphereVolume = default(V1VsphereVirtualDiskVolumeSource))
 {
     AwsElasticBlockStore = awsElasticBlockStore;
     AzureDisk            = azureDisk;
     AzureFile            = azureFile;
     Cephfs                = cephfs;
     Cinder                = cinder;
     ConfigMap             = configMap;
     Csi                   = csi;
     DownwardAPI           = downwardAPI;
     EmptyDir              = emptyDir;
     Fc                    = fc;
     FlexVolume            = flexVolume;
     Flocker               = flocker;
     GcePersistentDisk     = gcePersistentDisk;
     GitRepo               = gitRepo;
     Glusterfs             = glusterfs;
     HostPath              = hostPath;
     Iscsi                 = iscsi;
     Name                  = name;
     Nfs                   = nfs;
     PersistentVolumeClaim = persistentVolumeClaim;
     PhotonPersistentDisk  = photonPersistentDisk;
     PortworxVolume        = portworxVolume;
     Projected             = projected;
     Quobyte               = quobyte;
     Rbd                   = rbd;
     ScaleIO               = scaleIO;
     Secret                = secret;
     Storageos             = storageos;
     VsphereVolume         = vsphereVolume;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the V1PersistentVolumeSpec class.
 /// </summary>
 /// <param name="accessModes">AccessModes contains all ways the volume
 /// can be mounted. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes</param>
 /// <param name="awsElasticBlockStore">AWSElasticBlockStore represents
 /// an AWS Disk resource that is attached to a kubelet's host machine
 /// and then exposed to the pod. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore</param>
 /// <param name="azureDisk">AzureDisk represents an Azure Data Disk
 /// mount on the host and bind mount to the pod.</param>
 /// <param name="azureFile">AzureFile represents an Azure File Service
 /// mount on the host and bind mount to the pod.</param>
 /// <param name="capacity">A description of the persistent volume's
 /// resources and capacity. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity</param>
 /// <param name="cephfs">CephFS represents a Ceph FS mount on the host
 /// that shares a pod's lifetime</param>
 /// <param name="cinder">Cinder represents a cinder volume attached and
 /// mounted on kubelets host machine More info:
 /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
 /// <param name="claimRef">ClaimRef is part of a bi-directional binding
 /// between PersistentVolume and PersistentVolumeClaim. Expected to be
 /// non-nil when bound. claim.VolumeName is the authoritative bind
 /// between PV and PVC. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding</param>
 /// <param name="fc">FC represents a Fibre Channel resource that is
 /// attached to a kubelet's host machine and then exposed to the
 /// pod.</param>
 /// <param name="flexVolume">FlexVolume represents a generic volume
 /// resource that is provisioned/attached using an exec based plugin.
 /// This is an alpha feature and may change in future.</param>
 /// <param name="flocker">Flocker represents a Flocker volume attached
 /// to a kubelet's host machine and exposed to the pod for its usage.
 /// This depends on the Flocker control service being running</param>
 /// <param name="gcePersistentDisk">GCEPersistentDisk represents a GCE
 /// Disk resource that is attached to a kubelet's host machine and then
 /// exposed to the pod. Provisioned by an admin. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk</param>
 /// <param name="glusterfs">Glusterfs represents a Glusterfs volume
 /// that is attached to a host and exposed to the pod. Provisioned by
 /// an admin. More info:
 /// https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md</param>
 /// <param name="hostPath">HostPath represents a directory on the host.
 /// Provisioned by a developer or tester. This is useful for
 /// single-node development and testing only! On-host storage is not
 /// supported in any way and WILL NOT WORK in a multi-node cluster.
 /// More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#hostpath</param>
 /// <param name="iscsi">ISCSI represents an ISCSI Disk resource that is
 /// attached to a kubelet's host machine and then exposed to the pod.
 /// Provisioned by an admin.</param>
 /// <param name="local">Local represents directly-attached storage with
 /// node affinity</param>
 /// <param name="mountOptions">A list of mount options, e.g. ["ro",
 /// "soft"]. Not validated - mount will simply fail if one is invalid.
 /// More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options</param>
 /// <param name="nfs">NFS represents an NFS mount on the host.
 /// Provisioned by an admin. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#nfs</param>
 /// <param name="persistentVolumeReclaimPolicy">What happens to a
 /// persistent volume when released from its claim. Valid options are
 /// Retain (default) and Recycle. Recycling must be supported by the
 /// volume plugin underlying this persistent volume. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming</param>
 /// <param name="photonPersistentDisk">PhotonPersistentDisk represents
 /// a PhotonController persistent disk attached and mounted on kubelets
 /// host machine</param>
 /// <param name="portworxVolume">PortworxVolume represents a portworx
 /// volume attached and mounted on kubelets host machine</param>
 /// <param name="quobyte">Quobyte represents a Quobyte mount on the
 /// host that shares a pod's lifetime</param>
 /// <param name="rbd">RBD represents a Rados Block Device mount on the
 /// host that shares a pod's lifetime. More info:
 /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md</param>
 /// <param name="scaleIO">ScaleIO represents a ScaleIO persistent
 /// volume attached and mounted on Kubernetes nodes.</param>
 /// <param name="storageClassName">Name of StorageClass to which this
 /// persistent volume belongs. Empty value means that this volume does
 /// not belong to any StorageClass.</param>
 /// <param name="storageos">StorageOS represents a StorageOS volume
 /// that is attached to the kubelet's host machine and mounted into the
 /// pod More info:
 /// https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md</param>
 /// <param name="vsphereVolume">VsphereVolume represents a vSphere
 /// volume attached and mounted on kubelets host machine</param>
 public V1PersistentVolumeSpec(IList <string> accessModes = default(IList <string>), V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = default(V1AWSElasticBlockStoreVolumeSource), V1AzureDiskVolumeSource azureDisk = default(V1AzureDiskVolumeSource), V1AzureFilePersistentVolumeSource azureFile = default(V1AzureFilePersistentVolumeSource), IDictionary <string, ResourceQuantity> capacity = default(IDictionary <string, ResourceQuantity>), V1CephFSPersistentVolumeSource cephfs = default(V1CephFSPersistentVolumeSource), V1CinderVolumeSource cinder = default(V1CinderVolumeSource), V1ObjectReference claimRef = default(V1ObjectReference), V1FCVolumeSource fc = default(V1FCVolumeSource), V1FlexVolumeSource flexVolume = default(V1FlexVolumeSource), V1FlockerVolumeSource flocker = default(V1FlockerVolumeSource), V1GCEPersistentDiskVolumeSource gcePersistentDisk = default(V1GCEPersistentDiskVolumeSource), V1GlusterfsVolumeSource glusterfs = default(V1GlusterfsVolumeSource), V1HostPathVolumeSource hostPath = default(V1HostPathVolumeSource), V1ISCSIVolumeSource iscsi = default(V1ISCSIVolumeSource), V1LocalVolumeSource local = default(V1LocalVolumeSource), IList <string> mountOptions = default(IList <string>), V1NFSVolumeSource nfs = default(V1NFSVolumeSource), string persistentVolumeReclaimPolicy = default(string), V1PhotonPersistentDiskVolumeSource photonPersistentDisk = default(V1PhotonPersistentDiskVolumeSource), V1PortworxVolumeSource portworxVolume = default(V1PortworxVolumeSource), V1QuobyteVolumeSource quobyte = default(V1QuobyteVolumeSource), V1RBDVolumeSource rbd = default(V1RBDVolumeSource), V1ScaleIOPersistentVolumeSource scaleIO = default(V1ScaleIOPersistentVolumeSource), string storageClassName = default(string), V1StorageOSPersistentVolumeSource storageos = default(V1StorageOSPersistentVolumeSource), V1VsphereVirtualDiskVolumeSource vsphereVolume = default(V1VsphereVirtualDiskVolumeSource))
 {
     AccessModes          = accessModes;
     AwsElasticBlockStore = awsElasticBlockStore;
     AzureDisk            = azureDisk;
     AzureFile            = azureFile;
     Capacity             = capacity;
     Cephfs                        = cephfs;
     Cinder                        = cinder;
     ClaimRef                      = claimRef;
     Fc                            = fc;
     FlexVolume                    = flexVolume;
     Flocker                       = flocker;
     GcePersistentDisk             = gcePersistentDisk;
     Glusterfs                     = glusterfs;
     HostPath                      = hostPath;
     Iscsi                         = iscsi;
     Local                         = local;
     MountOptions                  = mountOptions;
     Nfs                           = nfs;
     PersistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy;
     PhotonPersistentDisk          = photonPersistentDisk;
     PortworxVolume                = portworxVolume;
     Quobyte                       = quobyte;
     Rbd                           = rbd;
     ScaleIO                       = scaleIO;
     StorageClassName              = storageClassName;
     Storageos                     = storageos;
     VsphereVolume                 = vsphereVolume;
     CustomInit();
 }