Show / Hide Table of Contents

Class V1EphemeralVolumeSource

Represents an ephemeral volume that is handled by a normal storage driver.

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

Constructors

V1EphemeralVolumeSource()

Declaration
public V1EphemeralVolumeSource()

V1EphemeralVolumeSource(V1EphemeralVolumeSource)

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

Properties

EqualityContract

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

VolumeClaimTemplate

Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be <pod name>-<volume name> where <volume name> is the name from the PodSpec.Volumes array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).

An existing PVC with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.

This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.

Required, must not be nil.

Declaration
[JsonPropertyName("volumeClaimTemplate")]
public V1PersistentVolumeClaimTemplate VolumeClaimTemplate { get; set; }
Property Value
Type Description
V1PersistentVolumeClaimTemplate

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(V1EphemeralVolumeSource?)

Declaration
public virtual bool Equals(V1EphemeralVolumeSource? other)
Parameters
Type Name Description
V1EphemeralVolumeSource 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 ==(V1EphemeralVolumeSource?, V1EphemeralVolumeSource?)

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

operator !=(V1EphemeralVolumeSource?, V1EphemeralVolumeSource?)

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

Implements

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