Class V1ServiceAccount
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ServiceAccount
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ServiceAccount
extends Object
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
-
Constructor Summary
-
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.boolean
APIVersion 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.List<@Valid V1ObjectReference>
Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.int
hashCode()
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.void
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
setAutomountServiceAccountToken
(Boolean automountServiceAccountToken) Set the automountServiceAccountToken property valuevoid
setImagePullSecrets
(List<@Valid V1LocalObjectReference> imagePullSecrets) Set the imagePullSecrets property valuevoid
Set the kind property valuevoid
setMetadata
(V1ObjectMeta metadata) Set the metadata property valuevoid
setSecrets
(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- 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- 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
- 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\". 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
-