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 Details

  • Constructor Details

    • V1ServiceAccount

      public V1ServiceAccount()
  • Method Details

    • getApiVersion

      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
      Returns:
      the apiVersion property value
    • setApiVersion

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
      Parameters:
      apiVersion - property value to set
    • apiVersion

      public V1ServiceAccount apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of V1ServiceAccount for chaining.
    • getAutomountServiceAccountToken

      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:
      the automountServiceAccountToken property value
    • setAutomountServiceAccountToken

      public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken)
      Set the automountServiceAccountToken property value
      Parameters:
      automountServiceAccountToken - property value to set
    • automountServiceAccountToken

      public V1ServiceAccount automountServiceAccountToken(Boolean automountServiceAccountToken)
      Set automountServiceAccountToken in a chainable fashion.
      Returns:
      The same instance of V1ServiceAccount for chaining.
    • getImagePullSecrets

      public List<@Valid 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:
      the imagePullSecrets property value
    • setImagePullSecrets

      public void setImagePullSecrets(List<@Valid V1LocalObjectReference> imagePullSecrets)
      Set the imagePullSecrets property value
      Parameters:
      imagePullSecrets - property value to set
    • imagePullSecrets

      public V1ServiceAccount imagePullSecrets(List<@Valid V1LocalObjectReference> imagePullSecrets)
      Set imagePullSecrets in a chainable fashion.
      Returns:
      The same instance of V1ServiceAccount for chaining.
    • addimagePullSecretsItem

      public V1ServiceAccount addimagePullSecretsItem(V1LocalObjectReference imagePullSecretsItem)
      Add an item to the imagePullSecrets property in a chainable fashion.
      Returns:
      The same instance of V1ServiceAccount for chaining.
    • getKind

      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
      Returns:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
      Parameters:
      kind - property value to set
    • kind

      public V1ServiceAccount kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of V1ServiceAccount for chaining.
    • getMetadata

      public V1ObjectMeta getMetadata()
      Returns:
      the metadata property value
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
      Set the metadata property value
      Parameters:
      metadata - property value to set
    • metadata

      public V1ServiceAccount metadata(V1ObjectMeta metadata)
      Set metadata in a chainable fashion.
      Returns:
      The same instance of V1ServiceAccount for chaining.
    • getSecrets

      public List<@Valid 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:
      the secrets property value
    • setSecrets

      public void setSecrets(List<@Valid V1ObjectReference> secrets)
      Set the secrets property value
      Parameters:
      secrets - property value to set
    • secrets

      public V1ServiceAccount secrets(List<@Valid V1ObjectReference> secrets)
      Set secrets in a chainable fashion.
      Returns:
      The same instance of V1ServiceAccount for chaining.
    • addsecretsItem

      public V1ServiceAccount addsecretsItem(V1ObjectReference secretsItem)
      Add an item to the secrets property in a chainable fashion.
      Returns:
      The same instance of V1ServiceAccount for chaining.
    • 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