Show / Hide Table of Contents

Class V1ImageVolumeSource

ImageVolumeSource represents a image volume resource.

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

Constructors

View Source

V1ImageVolumeSource()

Declaration
public V1ImageVolumeSource()
View Source

V1ImageVolumeSource(V1ImageVolumeSource)

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

Properties

View Source

EqualityContract

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

PullPolicy

Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.

Declaration
[JsonPropertyName("pullPolicy")]
public string PullPolicy { get; set; }
Property Value
Type Description
string
View Source

Reference

Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.

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

Methods

View Source

Equals(object?)

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

Equals(V1ImageVolumeSource?)

Declaration
public virtual bool Equals(V1ImageVolumeSource? other)
Parameters
Type Name Description
V1ImageVolumeSource other
Returns
Type Description
bool
View Source

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

View Source

operator ==(V1ImageVolumeSource?, V1ImageVolumeSource?)

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

operator !=(V1ImageVolumeSource?, V1ImageVolumeSource?)

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

Implements

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