Class V1EmptyDirVolumeSource
Represents an empty directory for a pod. Empty directory volumes support
ownership management and SELinux relabeling.
Inheritance
V1EmptyDirVolumeSource
Assembly: KubernetesClient.dll
Syntax
public record V1EmptyDirVolumeSource : IEquatable<V1EmptyDirVolumeSource>
Constructors
V1EmptyDirVolumeSource()
Declaration
public V1EmptyDirVolumeSource()
V1EmptyDirVolumeSource(V1EmptyDirVolumeSource)
Declaration
protected V1EmptyDirVolumeSource(V1EmptyDirVolumeSource original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Medium
Declaration
[JsonPropertyName("medium")]
public string Medium { get; set; }
Property Value
Mode
mode specifies the permission bits for the emptyDir directory, in numeric
notation (e.g., 0755, 01777). Must be a value between 0000 and 01777. If not
specified, defaults to 0777. This might be in conflict with other options that
affect the file mode, like fsGroup. If fsGroup is specified, the fsGroup
permissions will override the mode specified here. This field has no effect on
Windows. This field is alpha and requires EmptyDirVolumeMode featuregate to be
enabled.
Declaration
[JsonPropertyName("mode")]
public int? Mode { get; set; }
Property Value
SizeLimit
sizeLimit is the total amount of local storage required for this EmptyDir
volume. The size limit is also applicable for memory medium. The maximum usage
on memory medium EmptyDir would be the minimum value between the SizeLimit
specified here and the sum of memory limits of all containers in a pod. The
default is nil which means that the limit is undefined. More info:
https://kubernetes.io/docs/concepts/storage/volumes#emptydir
Declaration
[JsonPropertyName("sizeLimit")]
public ResourceQuantity SizeLimit { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1EmptyDirVolumeSource?)
Declaration
public virtual bool Equals(V1EmptyDirVolumeSource? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1EmptyDirVolumeSource?, V1EmptyDirVolumeSource?)
Declaration
public static bool operator ==(V1EmptyDirVolumeSource? left, V1EmptyDirVolumeSource? right)
Parameters
Returns
operator !=(V1EmptyDirVolumeSource?, V1EmptyDirVolumeSource?)
Declaration
public static bool operator !=(V1EmptyDirVolumeSource? left, V1EmptyDirVolumeSource? right)
Parameters
Returns
Implements