Interface Generated.ServiceAccountOrBuilder

    • Method Detail

      • hasMetadata

        boolean hasMetadata()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
        Returns:
        Whether the metadata field is set.
      • getMetadata

        Generated.ObjectMeta getMetadata()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
        Returns:
        The metadata.
      • getMetadataOrBuilder

        Generated.ObjectMetaOrBuilder getMetadataOrBuilder()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      • getSecretsList

        List<Generated.ObjectReference> getSecretsList()
         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
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
      • getSecrets

        Generated.ObjectReference getSecrets​(int index)
         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
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
      • getSecretsCount

        int getSecretsCount()
         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
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
      • getSecretsOrBuilderList

        List<? extends Generated.ObjectReferenceOrBuilder> getSecretsOrBuilderList()
         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
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
      • getSecretsOrBuilder

        Generated.ObjectReferenceOrBuilder getSecretsOrBuilder​(int index)
         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
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
      • getImagePullSecretsList

        List<Generated.LocalObjectReference> getImagePullSecretsList()
         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
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
      • getImagePullSecrets

        Generated.LocalObjectReference getImagePullSecrets​(int index)
         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
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
      • getImagePullSecretsCount

        int getImagePullSecretsCount()
         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
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
      • getImagePullSecretsOrBuilderList

        List<? extends Generated.LocalObjectReferenceOrBuilder> getImagePullSecretsOrBuilderList()
         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
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
      • getImagePullSecretsOrBuilder

        Generated.LocalObjectReferenceOrBuilder getImagePullSecretsOrBuilder​(int index)
         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
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
      • hasAutomountServiceAccountToken

        boolean hasAutomountServiceAccountToken()
         AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
         Can be overridden at the pod level.
         +optional
         
        optional bool automountServiceAccountToken = 4;
        Returns:
        Whether the automountServiceAccountToken field is set.
      • getAutomountServiceAccountToken

        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.
         +optional
         
        optional bool automountServiceAccountToken = 4;
        Returns:
        The automountServiceAccountToken.