Class V1ServiceAccount
ServiceAccount binds together: * a name, understood by users, and perhaps by
peripheral systems, for an identity * a principal that can be authenticated and
authorized * a set of secrets
Inheritance
V1ServiceAccount
Assembly: KubernetesClient.dll
Syntax
[KubernetesEntity(Group = "", Kind = "ServiceAccount", ApiVersion = "v1", PluralName = "serviceaccounts")]
public record V1ServiceAccount : IKubernetesObject<V1ObjectMeta>, IKubernetesObject, IMetadata<V1ObjectMeta>, IEquatable<V1ServiceAccount>
Constructors
View Source
V1ServiceAccount()
Declaration
public V1ServiceAccount()
View Source
V1ServiceAccount(V1ServiceAccount)
Declaration
protected V1ServiceAccount(V1ServiceAccount original)
Parameters
Fields
View Source
KubeApiVersion
Declaration
public const string KubeApiVersion = "v1"
Field Value
View Source
KubeGroup
Declaration
public const string KubeGroup = ""
Field Value
View Source
KubeKind
Declaration
public const string KubeKind = "ServiceAccount"
Field Value
View Source
KubePluralName
Declaration
public const string KubePluralName = "serviceaccounts"
Field Value
Properties
View Source
ApiVersion
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
View Source
AutomountServiceAccountToken
AutomountServiceAccountToken indicates whether pods running as this service
account should have an API token automatically mounted. Can be overridden at the
pod level.
Declaration
[JsonPropertyName("automountServiceAccountToken")]
public bool? AutomountServiceAccountToken { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
ImagePullSecrets
Declaration
[JsonPropertyName("imagePullSecrets")]
public IList<V1LocalObjectReference> ImagePullSecrets { get; set; }
Property Value
View Source
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
Declaration
[JsonPropertyName("metadata")]
public V1ObjectMeta Metadata { get; set; }
Property Value
View Source
Secrets
Secrets is a list of the secrets in the same namespace that pods running using
this ServiceAccount are allowed to use. Pods are only limited to this list if
this service account has a "kubernetes.io/enforce-mountable-secrets" annotation
set to "true". The "kubernetes.io/enforce-mountable-secrets" annotation is
deprecated since v1.32. Prefer separate namespaces to isolate access to mounted
secrets. This field should not be used to find auto-generated service account
token secrets for use outside of pods. Instead, tokens can be requested directly
using the TokenRequest API, or service account token secrets can be manually
created. More info: https://kubernetes.io/docs/concepts/configuration/secret
Declaration
[JsonPropertyName("secrets")]
public IList<V1ObjectReference> Secrets { 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(V1ServiceAccount?)
Declaration
public virtual bool Equals(V1ServiceAccount? 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 ==(V1ServiceAccount?, V1ServiceAccount?)
Declaration
public static bool operator ==(V1ServiceAccount? left, V1ServiceAccount? right)
Parameters
Returns
View Source
operator !=(V1ServiceAccount?, V1ServiceAccount?)
Declaration
public static bool operator !=(V1ServiceAccount? left, V1ServiceAccount? right)
Parameters
Returns
Implements
Extension Methods