Show / Hide Table of Contents

Class V1GitRepoVolumeSource

Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.

DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.

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

Constructors

View Source

V1GitRepoVolumeSource()

Declaration
public V1GitRepoVolumeSource()
View Source

V1GitRepoVolumeSource(V1GitRepoVolumeSource)

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

Properties

View Source

Directory

directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.

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

EqualityContract

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

Repository

repository is the URL

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

Revision

revision is the commit hash for the specified revision.

Declaration
[JsonPropertyName("revision")]
public string Revision { 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(V1GitRepoVolumeSource?)

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

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

operator !=(V1GitRepoVolumeSource?, V1GitRepoVolumeSource?)

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

Implements

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