Class V1ConfigMapProjection
Adapts a ConfigMap into a projected volume.
The contents of the target ConfigMap's Data field will be presented in a
projected volume as files using the keys in the Data field as the file names,
unless the items element is populated with specific mappings of keys to paths.
Note that this is identical to a configmap volume source without the default
mode.
Inheritance
V1ConfigMapProjection
Assembly: KubernetesClient.dll
Syntax
public record V1ConfigMapProjection : IEquatable<V1ConfigMapProjection>
Constructors
View Source
V1ConfigMapProjection()
Declaration
public V1ConfigMapProjection()
View Source
V1ConfigMapProjection(V1ConfigMapProjection)
Declaration
protected V1ConfigMapProjection(V1ConfigMapProjection original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Items
items if unspecified, each key-value pair in the Data field of the referenced
ConfigMap will be projected into the volume as a file whose name is the key and
content is the value. If specified, the listed keys will be projected into the
specified paths, and unlisted keys will not be present. If a key is specified
which is not present in the ConfigMap, the volume setup will error unless it is
marked optional. Paths must be relative and may not contain the '..' path or
start with '..'.
Declaration
[JsonPropertyName("items")]
public IList<V1KeyToPath> Items { get; set; }
Property Value
View Source
Name
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
Optional
optional specify whether the ConfigMap or its keys must be defined
Declaration
[JsonPropertyName("optional")]
public bool? Optional { 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(V1ConfigMapProjection?)
Declaration
public virtual bool Equals(V1ConfigMapProjection? 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 ==(V1ConfigMapProjection?, V1ConfigMapProjection?)
Declaration
public static bool operator ==(V1ConfigMapProjection? left, V1ConfigMapProjection? right)
Parameters
Returns
View Source
operator !=(V1ConfigMapProjection?, V1ConfigMapProjection?)
Declaration
public static bool operator !=(V1ConfigMapProjection? left, V1ConfigMapProjection? right)
Parameters
Returns
Implements