Exemplo n.º 1
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="csi">CSI represents storage that is handled by an
 /// external CSI driver (Beta feature).</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 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="nodeAffinity">NodeAffinity defines constraints that
 /// limit what nodes this volume can be accessed from. This field
 /// influences the scheduling of pods that use this volume.</param>
 /// <param name="persistentVolumeReclaimPolicy">What happens to a
 /// persistent volume when released from its claim. Valid options are
 /// Retain (default for manually created PersistentVolumes), Delete
 /// (default for dynamically provisioned PersistentVolumes), and
 /// Recycle (deprecated). Recycle must be supported by the volume
 /// plugin underlying this PersistentVolume. 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="volumeMode">volumeMode defines if a volume is intended
 /// to be used with a formatted filesystem or to remain in raw block
 /// state. Value of Filesystem is implied when not included in spec.
 /// This is a beta feature.</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), V1CinderPersistentVolumeSource cinder = default(V1CinderPersistentVolumeSource), V1ObjectReference claimRef = default(V1ObjectReference), V1CSIPersistentVolumeSource csi = default(V1CSIPersistentVolumeSource), V1FCVolumeSource fc = default(V1FCVolumeSource), V1FlexPersistentVolumeSource flexVolume = default(V1FlexPersistentVolumeSource), V1FlockerVolumeSource flocker = default(V1FlockerVolumeSource), V1GCEPersistentDiskVolumeSource gcePersistentDisk = default(V1GCEPersistentDiskVolumeSource), V1GlusterfsPersistentVolumeSource glusterfs = default(V1GlusterfsPersistentVolumeSource), V1HostPathVolumeSource hostPath = default(V1HostPathVolumeSource), V1ISCSIPersistentVolumeSource iscsi = default(V1ISCSIPersistentVolumeSource), V1LocalVolumeSource local = default(V1LocalVolumeSource), IList <string> mountOptions = default(IList <string>), V1NFSVolumeSource nfs = default(V1NFSVolumeSource), V1VolumeNodeAffinity nodeAffinity = default(V1VolumeNodeAffinity), string persistentVolumeReclaimPolicy = default(string), V1PhotonPersistentDiskVolumeSource photonPersistentDisk = default(V1PhotonPersistentDiskVolumeSource), V1PortworxVolumeSource portworxVolume = default(V1PortworxVolumeSource), V1QuobyteVolumeSource quobyte = default(V1QuobyteVolumeSource), V1RBDPersistentVolumeSource rbd = default(V1RBDPersistentVolumeSource), V1ScaleIOPersistentVolumeSource scaleIO = default(V1ScaleIOPersistentVolumeSource), string storageClassName = default(string), V1StorageOSPersistentVolumeSource storageos = default(V1StorageOSPersistentVolumeSource), string volumeMode = default(string), V1VsphereVirtualDiskVolumeSource vsphereVolume = default(V1VsphereVirtualDiskVolumeSource))
 {
     AccessModes          = accessModes;
     AwsElasticBlockStore = awsElasticBlockStore;
     AzureDisk            = azureDisk;
     AzureFile            = azureFile;
     Capacity             = capacity;
     Cephfs                        = cephfs;
     Cinder                        = cinder;
     ClaimRef                      = claimRef;
     Csi                           = csi;
     Fc                            = fc;
     FlexVolume                    = flexVolume;
     Flocker                       = flocker;
     GcePersistentDisk             = gcePersistentDisk;
     Glusterfs                     = glusterfs;
     HostPath                      = hostPath;
     Iscsi                         = iscsi;
     Local                         = local;
     MountOptions                  = mountOptions;
     Nfs                           = nfs;
     NodeAffinity                  = nodeAffinity;
     PersistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy;
     PhotonPersistentDisk          = photonPersistentDisk;
     PortworxVolume                = portworxVolume;
     Quobyte                       = quobyte;
     Rbd                           = rbd;
     ScaleIO                       = scaleIO;
     StorageClassName              = storageClassName;
     Storageos                     = storageos;
     VolumeMode                    = volumeMode;
     VsphereVolume                 = vsphereVolume;
     CustomInit();
 }
Exemplo n.º 2
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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
 /// <param name="configMap">ConfigMap represents a configMap that
 /// should populate this volume</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://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/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://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="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), 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;
     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();
 }