Class StorageClass

    • Method Detail

      • getAllowVolumeExpansion

        public Boolean getAllowVolumeExpansion()
        AllowVolumeExpansion shows whether the storage class allow volume expand
      • setAllowVolumeExpansion

        public void setAllowVolumeExpansion​(Boolean allowVolumeExpansion)
        AllowVolumeExpansion shows whether the storage class allow volume expand
      • getAllowedTopologies

        public List<TopologySelectorTerm> getAllowedTopologies()
        Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
      • setAllowedTopologies

        public void setAllowedTopologies​(List<TopologySelectorTerm> allowedTopologies)
        Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
      • getApiVersion

        public String getApiVersion()
        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
        Specified by:
        getApiVersion in interface HasMetadata
      • setApiVersion

        public void setApiVersion​(String apiVersion)
        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
        Specified by:
        setApiVersion in interface HasMetadata
      • getKind

        public String getKind()
        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        Specified by:
        getKind in interface HasMetadata
      • setKind

        public void setKind​(String kind)
        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      • getMetadata

        public ObjectMeta getMetadata()
        StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.


        StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.

        Specified by:
        getMetadata in interface HasMetadata
      • setMetadata

        public void setMetadata​(ObjectMeta metadata)
        StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.


        StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.

        Specified by:
        setMetadata in interface HasMetadata
      • getMountOptions

        public List<String> getMountOptions()
        Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
      • setMountOptions

        public void setMountOptions​(List<String> mountOptions)
        Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
      • getParameters

        public Map<String,​String> getParameters()
        Parameters holds the parameters for the provisioner that should create volumes of this storage class.
      • setParameters

        public void setParameters​(Map<String,​String> parameters)
        Parameters holds the parameters for the provisioner that should create volumes of this storage class.
      • getProvisioner

        public String getProvisioner()
        Provisioner indicates the type of the provisioner.
      • setProvisioner

        public void setProvisioner​(String provisioner)
        Provisioner indicates the type of the provisioner.
      • getReclaimPolicy

        public String getReclaimPolicy()
        Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
      • setReclaimPolicy

        public void setReclaimPolicy​(String reclaimPolicy)
        Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
      • getVolumeBindingMode

        public String getVolumeBindingMode()
        VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
      • setVolumeBindingMode

        public void setVolumeBindingMode​(String volumeBindingMode)
        VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)