Class V1Secret
Secret holds secret data of a certain type. The total bytes of the values in the
Data field must be less than MaxSecretSize bytes.
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "", Kind = "Secret", ApiVersion = "v1", PluralName = "secrets")]
public record V1Secret : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<V1Secret>
Constructors
V1Secret()
Declaration
V1Secret(V1Secret)
Declaration
protected V1Secret(V1Secret original)
Parameters
Fields
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
KubeGroup
Declaration
public const string KubeGroup = ""
Field Value
KubeKind
Declaration
public const string KubeKind = "Secret"
Field Value
KubePluralName
Declaration
public const string KubePluralName = "secrets"
Field Value
Properties
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
Data
Data contains the secret data. Each key must consist of alphanumeric characters,
'-', '_' or '.'. The serialized form of the secret data is a base64 encoded
string, representing the arbitrary (possibly non-string) data value here.
Described in https://tools.ietf.org/html/rfc4648#section-4
Declaration
[JsonPropertyName("data")]
public IDictionary<string, byte[]> Data { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Immutable
Immutable, if set to true, ensures that data stored in the Secret cannot be
updated (only object metadata can be modified). If not set to true, the field
can be modified at any time. Defaulted to nil.
Declaration
[JsonPropertyName("immutable")]
public bool? Immutable { get; set; }
Property Value
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
StringData
stringData allows specifying non-binary secret data in string form. It is
provided as a write-only input field for convenience. All keys and values are
merged into the data field on write, overwriting any existing values. The
stringData field is never output when reading from the API.
Declaration
[JsonPropertyName("stringData")]
public IDictionary<string, string> StringData { get; set; }
Property Value
Type
Declaration
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1Secret?)
Declaration
public virtual bool Equals(V1Secret? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1Secret?, V1Secret?)
Declaration
public static bool operator ==(V1Secret? left, V1Secret? right)
Parameters
Returns
operator !=(V1Secret?, V1Secret?)
Declaration
public static bool operator !=(V1Secret? left, V1Secret? right)
Parameters
Returns
Implements
Extension Methods