Show / Hide Table of Contents

Class V1StorageOSVolumeSource

Represents a StorageOS persistent volume resource.

Inheritance
object
V1StorageOSVolumeSource
Implements
IEquatable<V1StorageOSVolumeSource>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1StorageOSVolumeSource : IEquatable<V1StorageOSVolumeSource>

Constructors

V1StorageOSVolumeSource()

Declaration
public V1StorageOSVolumeSource()

V1StorageOSVolumeSource(V1StorageOSVolumeSource)

Declaration
protected V1StorageOSVolumeSource(V1StorageOSVolumeSource original)
Parameters
Type Name Description
V1StorageOSVolumeSource original

Properties

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

FsType

fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.

Declaration
[JsonPropertyName("fsType")]
public string FsType { get; set; }
Property Value
Type Description
string

ReadOnlyProperty

readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.

Declaration
[JsonPropertyName("readOnly")]
public bool? ReadOnlyProperty { get; set; }
Property Value
Type Description
bool?

SecretRef

secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.

Declaration
[JsonPropertyName("secretRef")]
public V1LocalObjectReference SecretRef { get; set; }
Property Value
Type Description
V1LocalObjectReference

VolumeName

volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.

Declaration
[JsonPropertyName("volumeName")]
public string VolumeName { get; set; }
Property Value
Type Description
string

VolumeNamespace

volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.

Declaration
[JsonPropertyName("volumeNamespace")]
public string VolumeNamespace { get; set; }
Property Value
Type Description
string

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1StorageOSVolumeSource?)

Declaration
public virtual bool Equals(V1StorageOSVolumeSource? other)
Parameters
Type Name Description
V1StorageOSVolumeSource other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1StorageOSVolumeSource?, V1StorageOSVolumeSource?)

Declaration
public static bool operator ==(V1StorageOSVolumeSource? left, V1StorageOSVolumeSource? right)
Parameters
Type Name Description
V1StorageOSVolumeSource left
V1StorageOSVolumeSource right
Returns
Type Description
bool

operator !=(V1StorageOSVolumeSource?, V1StorageOSVolumeSource?)

Declaration
public static bool operator !=(V1StorageOSVolumeSource? left, V1StorageOSVolumeSource? right)
Parameters
Type Name Description
V1StorageOSVolumeSource left
V1StorageOSVolumeSource right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX