Class V1ImageVolumeSource
ImageVolumeSource represents a image volume resource.
Inheritance
V1ImageVolumeSource
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
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1ImageVolumeSource?)
Declaration
public virtual bool Equals(V1ImageVolumeSource? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1ImageVolumeSource?, V1ImageVolumeSource?)
Declaration
public static bool operator ==(V1ImageVolumeSource? left, V1ImageVolumeSource? right)
Parameters
Returns
View Source
operator !=(V1ImageVolumeSource?, V1ImageVolumeSource?)
Declaration
public static bool operator !=(V1ImageVolumeSource? left, V1ImageVolumeSource? right)
Parameters
Returns
Implements