Class StorageClass
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.kubernetes.storage.v1beta1.StorageClass
-
public class StorageClass extends com.pulumi.resources.CustomResource
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.
-
-
Constructor Summary
Constructors Constructor Description StorageClass(java.lang.String name)
StorageClass(java.lang.String name, StorageClassArgs args)
StorageClass(java.lang.String name, StorageClassArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.List<TopologySelectorTerm>>
allowedTopologies()
com.pulumi.core.Output<java.lang.Boolean>
allowVolumeExpansion()
com.pulumi.core.Output<java.lang.String>
apiVersion()
static StorageClass
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
kind()
com.pulumi.core.Output<ObjectMeta>
metadata()
com.pulumi.core.Output<java.util.List<java.lang.String>>
mountOptions()
com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>
parameters()
com.pulumi.core.Output<java.lang.String>
provisioner()
com.pulumi.core.Output<java.lang.String>
reclaimPolicy()
com.pulumi.core.Output<java.lang.String>
volumeBindingMode()
-
-
-
Constructor Detail
-
StorageClass
public StorageClass(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
StorageClass
public StorageClass(java.lang.String name, StorageClassArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
StorageClass
public StorageClass(java.lang.String name, StorageClassArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
allowVolumeExpansion
public com.pulumi.core.Output<java.lang.Boolean> allowVolumeExpansion()
- Returns:
- AllowVolumeExpansion shows whether the storage class allow volume expand
-
allowedTopologies
public com.pulumi.core.Output<java.util.List<TopologySelectorTerm>> allowedTopologies()
- Returns:
- 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.
-
apiVersion
public com.pulumi.core.Output<java.lang.String> apiVersion()
- Returns:
- 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
-
kind
public com.pulumi.core.Output<java.lang.String> kind()
- Returns:
- 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
-
metadata
public com.pulumi.core.Output<ObjectMeta> metadata()
- Returns:
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-
mountOptions
public com.pulumi.core.Output<java.util.List<java.lang.String>> mountOptions()
- Returns:
- 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.
-
parameters
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> parameters()
- Returns:
- Parameters holds the parameters for the provisioner that should create volumes of this storage class.
-
provisioner
public com.pulumi.core.Output<java.lang.String> provisioner()
- Returns:
- Provisioner indicates the type of the provisioner.
-
reclaimPolicy
public com.pulumi.core.Output<java.lang.String> reclaimPolicy()
- Returns:
- Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
-
volumeBindingMode
public com.pulumi.core.Output<java.lang.String> volumeBindingMode()
- Returns:
- 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.
-
get
public static StorageClass get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-