Class V1ServiceAccount

java.lang.Object
io.kubernetes.client.openapi.models.V1ServiceAccount
All Implemented Interfaces:
KubernetesObject, KubernetesType

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") 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 Details

  • Constructor Details

    • V1ServiceAccount

      public V1ServiceAccount()
  • Method Details

    • apiVersion

      public V1ServiceAccount apiVersion(String apiVersion)
    • getApiVersion

      @Nullable public String 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:
      getApiVersion in interface KubernetesType
      Returns:
      apiVersion
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • automountServiceAccountToken

      public V1ServiceAccount automountServiceAccountToken(Boolean automountServiceAccountToken)
    • getAutomountServiceAccountToken

      @Nullable public Boolean 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:
      automountServiceAccountToken
    • setAutomountServiceAccountToken

      public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken)
    • imagePullSecrets

      public V1ServiceAccount imagePullSecrets(List<V1LocalObjectReference> imagePullSecrets)
    • addImagePullSecretsItem

      public V1ServiceAccount addImagePullSecretsItem(V1LocalObjectReference imagePullSecretsItem)
    • getImagePullSecrets

      @Nullable public List<V1LocalObjectReference> 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:
      imagePullSecrets
    • setImagePullSecrets

      public void setImagePullSecrets(List<V1LocalObjectReference> imagePullSecrets)
    • kind

      public V1ServiceAccount kind(String kind)
    • getKind

      @Nullable public String 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:
      getKind in interface KubernetesType
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • metadata

      public V1ServiceAccount metadata(V1ObjectMeta metadata)
    • getMetadata

      @Nullable public V1ObjectMeta getMetadata()
      Get metadata
      Specified by:
      getMetadata in interface KubernetesObject
      Returns:
      metadata
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
    • secrets

      public V1ServiceAccount secrets(List<V1ObjectReference> secrets)
    • addSecretsItem

      public V1ServiceAccount addSecretsItem(V1ObjectReference secretsItem)
    • getSecrets

      @Nullable public List<V1ObjectReference> 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:
      secrets
    • setSecrets

      public void setSecrets(List<V1ObjectReference> secrets)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object