Class V1ServiceAccount
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ServiceAccount
- All Implemented Interfaces:
KubernetesObject,KubernetesType
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ServiceAccount
extends Object
implements KubernetesObject
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddImagePullSecretsItem(V1LocalObjectReference imagePullSecretsItem) Add an item to the imagePullSecrets property in a chainable fashion.addSecretsItem(V1ObjectReference secretsItem) Add an item to the secrets property in a chainable fashion.apiVersion(String apiVersion) Set apiVersion in a chainable fashion.automountServiceAccountToken(Boolean automountServiceAccountToken) Set automountServiceAccountToken in a chainable fashion.booleanAPIVersion defines the versioned schema of this representation of an object.AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.List<@Valid V1LocalObjectReference> ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.getKind()Kind is a string value representing the REST resource this object represents.Gets metadata.List<@Valid V1ObjectReference> Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.inthashCode()imagePullSecrets(List<@Valid V1LocalObjectReference> imagePullSecrets) Set imagePullSecrets in a chainable fashion.Set kind in a chainable fashion.metadata(V1ObjectMeta metadata) Set metadata in a chainable fashion.secrets(List<@Valid V1ObjectReference> secrets) Set secrets in a chainable fashion.voidsetApiVersion(String apiVersion) Set the apiVersion property valuevoidsetAutomountServiceAccountToken(Boolean automountServiceAccountToken) Set the automountServiceAccountToken property valuevoidsetImagePullSecrets(List<@Valid V1LocalObjectReference> imagePullSecrets) Set the imagePullSecrets property valuevoidSet the kind property valuevoidsetMetadata(V1ObjectMeta metadata) Set the metadata property valuevoidsetSecrets(List<@Valid V1ObjectReference> secrets) Set the secrets property valuetoString()
-
Field Details
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN
- See Also:
-
JSON_PROPERTY_IMAGE_PULL_SECRETS
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_SECRETS
- See Also:
-
-
Constructor Details
-
V1ServiceAccount
public V1ServiceAccount()
-
-
Method Details
-
getApiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersionin interfaceKubernetesType- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value- Parameters:
apiVersion- property value to set
-
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1ServiceAccount for chaining.
-
getAutomountServiceAccountToken
AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.- Returns:
- the automountServiceAccountToken property value
-
setAutomountServiceAccountToken
Set the automountServiceAccountToken property value- Parameters:
automountServiceAccountToken- property value to set
-
automountServiceAccountToken
Set automountServiceAccountToken in a chainable fashion.- Returns:
- The same instance of V1ServiceAccount for chaining.
-
getImagePullSecrets
ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod- Returns:
- the imagePullSecrets property value
-
setImagePullSecrets
Set the imagePullSecrets property value- Parameters:
imagePullSecrets- property value to set
-
imagePullSecrets
Set imagePullSecrets in a chainable fashion.- Returns:
- The same instance of V1ServiceAccount for chaining.
-
addImagePullSecretsItem
Add an item to the imagePullSecrets property in a chainable fashion.- Returns:
- The same instance of V1ServiceAccount for chaining.
-
getKind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKindin interfaceKubernetesType- Returns:
- the kind property value
-
setKind
Set the kind property value- Parameters:
kind- property value to set
-
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1ServiceAccount for chaining.
-
getMetadata
Description copied from interface:KubernetesObjectGets metadata.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
- Specified by:
getMetadatain interfaceKubernetesObject- Returns:
- the metadata property value
-
setMetadata
Set the metadata property value- Parameters:
metadata- property value to set
-
metadata
Set metadata in a chainable fashion.- Returns:
- The same instance of V1ServiceAccount for chaining.
-
getSecrets
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- Returns:
- the secrets property value
-
setSecrets
Set the secrets property value- Parameters:
secrets- property value to set
-
secrets
Set secrets in a chainable fashion.- Returns:
- The same instance of V1ServiceAccount for chaining.
-
addSecretsItem
Add an item to the secrets property in a chainable fashion.- Returns:
- The same instance of V1ServiceAccount for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-