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
V1GitRepoVolumeSource
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
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Repository
Declaration
[JsonPropertyName("repository")]
public string Repository { get; set; }
Property Value
View Source
Revision
revision is the commit hash for the specified revision.
Declaration
[JsonPropertyName("revision")]
public string Revision { 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(V1GitRepoVolumeSource?)
Declaration
public virtual bool Equals(V1GitRepoVolumeSource? 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 ==(V1GitRepoVolumeSource?, V1GitRepoVolumeSource?)
Declaration
public static bool operator ==(V1GitRepoVolumeSource? left, V1GitRepoVolumeSource? right)
Parameters
Returns
View Source
operator !=(V1GitRepoVolumeSource?, V1GitRepoVolumeSource?)
Declaration
public static bool operator !=(V1GitRepoVolumeSource? left, V1GitRepoVolumeSource? right)
Parameters
Returns
Implements