Package k8s.io.api.core.v1
Class Generated.ServiceAccount.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
- k8s.io.api.core.v1.Generated.ServiceAccount.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.ServiceAccountOrBuilder
- Enclosing class:
- Generated.ServiceAccount
public static final class Generated.ServiceAccount.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder> implements Generated.ServiceAccountOrBuilder
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
Protobuf typek8s.io.api.core.v1.ServiceAccount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.ServiceAccount.BuilderaddAllImagePullSecrets(Iterable<? extends Generated.LocalObjectReference> values)ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.ServiceAccount.BuilderaddAllSecrets(Iterable<? extends Generated.ObjectReference> values)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccount.BuilderaddImagePullSecrets(int index, Generated.LocalObjectReference value)ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.ServiceAccount.BuilderaddImagePullSecrets(int index, Generated.LocalObjectReference.Builder builderForValue)ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.ServiceAccount.BuilderaddImagePullSecrets(Generated.LocalObjectReference value)ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.ServiceAccount.BuilderaddImagePullSecrets(Generated.LocalObjectReference.Builder builderForValue)ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.LocalObjectReference.BuilderaddImagePullSecretsBuilder()ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.LocalObjectReference.BuilderaddImagePullSecretsBuilder(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.Generated.ServiceAccount.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ServiceAccount.BuilderaddSecrets(int index, Generated.ObjectReference value)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccount.BuilderaddSecrets(int index, Generated.ObjectReference.Builder builderForValue)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccount.BuilderaddSecrets(Generated.ObjectReference value)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccount.BuilderaddSecrets(Generated.ObjectReference.Builder builderForValue)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ObjectReference.BuilderaddSecretsBuilder()Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ObjectReference.BuilderaddSecretsBuilder(int index)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccountbuild()Generated.ServiceAccountbuildPartial()Generated.ServiceAccount.Builderclear()Generated.ServiceAccount.BuilderclearAutomountServiceAccountToken()AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.Generated.ServiceAccount.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.ServiceAccount.BuilderclearImagePullSecrets()ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.ServiceAccount.BuilderclearMetadata()Standard object's metadata.Generated.ServiceAccount.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.ServiceAccount.BuilderclearSecrets()Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccount.Builderclone()booleangetAutomountServiceAccountToken()AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.Generated.ServiceAccountgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Generated.LocalObjectReferencegetImagePullSecrets(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.Generated.LocalObjectReference.BuildergetImagePullSecretsBuilder(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.List<Generated.LocalObjectReference.Builder>getImagePullSecretsBuilderList()ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.intgetImagePullSecretsCount()ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.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.Generated.LocalObjectReferenceOrBuildergetImagePullSecretsOrBuilder(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.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.Generated.ObjectMetagetMetadata()Standard object's metadata.Generated.ObjectMeta.BuildergetMetadataBuilder()Standard object's metadata.Generated.ObjectMetaOrBuildergetMetadataOrBuilder()Standard object's metadata.Generated.ObjectReferencegetSecrets(int index)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ObjectReference.BuildergetSecretsBuilder(int index)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.List<Generated.ObjectReference.Builder>getSecretsBuilderList()Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.intgetSecretsCount()Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.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.Generated.ObjectReferenceOrBuildergetSecretsOrBuilder(int index)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.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.booleanhasAutomountServiceAccountToken()AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.booleanhasMetadata()Standard object's metadata.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.ServiceAccount.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.ServiceAccount.BuildermergeFrom(com.google.protobuf.Message other)Generated.ServiceAccount.BuildermergeFrom(Generated.ServiceAccount other)Generated.ServiceAccount.BuildermergeMetadata(Generated.ObjectMeta value)Standard object's metadata.Generated.ServiceAccount.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.ServiceAccount.BuilderremoveImagePullSecrets(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.Generated.ServiceAccount.BuilderremoveSecrets(int index)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccount.BuildersetAutomountServiceAccountToken(boolean value)AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.Generated.ServiceAccount.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ServiceAccount.BuildersetImagePullSecrets(int index, Generated.LocalObjectReference value)ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.ServiceAccount.BuildersetImagePullSecrets(int index, Generated.LocalObjectReference.Builder builderForValue)ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount.Generated.ServiceAccount.BuildersetMetadata(Generated.ObjectMeta value)Standard object's metadata.Generated.ServiceAccount.BuildersetMetadata(Generated.ObjectMeta.Builder builderForValue)Standard object's metadata.Generated.ServiceAccount.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.ServiceAccount.BuildersetSecrets(int index, Generated.ObjectReference value)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccount.BuildersetSecrets(int index, Generated.ObjectReference.Builder builderForValue)Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.Generated.ServiceAccount.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
clear
public Generated.ServiceAccount.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
getDefaultInstanceForType
public Generated.ServiceAccount getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.ServiceAccount build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.ServiceAccount buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.ServiceAccount.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
setField
public Generated.ServiceAccount.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
clearField
public Generated.ServiceAccount.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
clearOneof
public Generated.ServiceAccount.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
setRepeatedField
public Generated.ServiceAccount.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
addRepeatedField
public Generated.ServiceAccount.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
mergeFrom
public Generated.ServiceAccount.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.ServiceAccount.Builder>
-
mergeFrom
public Generated.ServiceAccount.Builder mergeFrom(Generated.ServiceAccount other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
mergeFrom
public Generated.ServiceAccount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.ServiceAccount.Builder>- Throws:
IOException
-
hasMetadata
public 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;- Specified by:
hasMetadatain interfaceGenerated.ServiceAccountOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public 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;- Specified by:
getMetadatain interfaceGenerated.ServiceAccountOrBuilder- Returns:
- The metadata.
-
setMetadata
public Generated.ServiceAccount.Builder setMetadata(Generated.ObjectMeta value)
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;
-
setMetadata
public Generated.ServiceAccount.Builder setMetadata(Generated.ObjectMeta.Builder builderForValue)
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;
-
mergeMetadata
public Generated.ServiceAccount.Builder mergeMetadata(Generated.ObjectMeta value)
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;
-
clearMetadata
public Generated.ServiceAccount.Builder clearMetadata()
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;
-
getMetadataBuilder
public Generated.ObjectMeta.Builder getMetadataBuilder()
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;
-
getMetadataOrBuilder
public 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;- Specified by:
getMetadataOrBuilderin interfaceGenerated.ServiceAccountOrBuilder
-
getSecretsList
public 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;- Specified by:
getSecretsListin interfaceGenerated.ServiceAccountOrBuilder
-
getSecretsCount
public 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;- Specified by:
getSecretsCountin interfaceGenerated.ServiceAccountOrBuilder
-
getSecrets
public 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;- Specified by:
getSecretsin interfaceGenerated.ServiceAccountOrBuilder
-
setSecrets
public Generated.ServiceAccount.Builder setSecrets(int index, Generated.ObjectReference value)
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;
-
setSecrets
public Generated.ServiceAccount.Builder setSecrets(int index, Generated.ObjectReference.Builder builderForValue)
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;
-
addSecrets
public Generated.ServiceAccount.Builder addSecrets(Generated.ObjectReference value)
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;
-
addSecrets
public Generated.ServiceAccount.Builder addSecrets(int index, Generated.ObjectReference value)
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;
-
addSecrets
public Generated.ServiceAccount.Builder addSecrets(Generated.ObjectReference.Builder builderForValue)
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;
-
addSecrets
public Generated.ServiceAccount.Builder addSecrets(int index, Generated.ObjectReference.Builder builderForValue)
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;
-
addAllSecrets
public Generated.ServiceAccount.Builder addAllSecrets(Iterable<? extends Generated.ObjectReference> values)
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;
-
clearSecrets
public Generated.ServiceAccount.Builder clearSecrets()
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;
-
removeSecrets
public Generated.ServiceAccount.Builder removeSecrets(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;
-
getSecretsBuilder
public Generated.ObjectReference.Builder getSecretsBuilder(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;
-
getSecretsOrBuilder
public 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;- Specified by:
getSecretsOrBuilderin interfaceGenerated.ServiceAccountOrBuilder
-
getSecretsOrBuilderList
public 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;- Specified by:
getSecretsOrBuilderListin interfaceGenerated.ServiceAccountOrBuilder
-
addSecretsBuilder
public Generated.ObjectReference.Builder addSecretsBuilder()
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;
-
addSecretsBuilder
public Generated.ObjectReference.Builder addSecretsBuilder(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;
-
getSecretsBuilderList
public List<Generated.ObjectReference.Builder> getSecretsBuilderList()
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
public 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;- Specified by:
getImagePullSecretsListin interfaceGenerated.ServiceAccountOrBuilder
-
getImagePullSecretsCount
public 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;- Specified by:
getImagePullSecretsCountin interfaceGenerated.ServiceAccountOrBuilder
-
getImagePullSecrets
public 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;- Specified by:
getImagePullSecretsin interfaceGenerated.ServiceAccountOrBuilder
-
setImagePullSecrets
public Generated.ServiceAccount.Builder setImagePullSecrets(int index, Generated.LocalObjectReference value)
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;
-
setImagePullSecrets
public Generated.ServiceAccount.Builder setImagePullSecrets(int index, Generated.LocalObjectReference.Builder builderForValue)
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;
-
addImagePullSecrets
public Generated.ServiceAccount.Builder addImagePullSecrets(Generated.LocalObjectReference value)
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;
-
addImagePullSecrets
public Generated.ServiceAccount.Builder addImagePullSecrets(int index, Generated.LocalObjectReference value)
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;
-
addImagePullSecrets
public Generated.ServiceAccount.Builder addImagePullSecrets(Generated.LocalObjectReference.Builder builderForValue)
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;
-
addImagePullSecrets
public Generated.ServiceAccount.Builder addImagePullSecrets(int index, Generated.LocalObjectReference.Builder builderForValue)
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;
-
addAllImagePullSecrets
public Generated.ServiceAccount.Builder addAllImagePullSecrets(Iterable<? extends Generated.LocalObjectReference> values)
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;
-
clearImagePullSecrets
public Generated.ServiceAccount.Builder clearImagePullSecrets()
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;
-
removeImagePullSecrets
public Generated.ServiceAccount.Builder removeImagePullSecrets(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;
-
getImagePullSecretsBuilder
public Generated.LocalObjectReference.Builder getImagePullSecretsBuilder(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;
-
getImagePullSecretsOrBuilder
public 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;- Specified by:
getImagePullSecretsOrBuilderin interfaceGenerated.ServiceAccountOrBuilder
-
getImagePullSecretsOrBuilderList
public 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;- Specified by:
getImagePullSecretsOrBuilderListin interfaceGenerated.ServiceAccountOrBuilder
-
addImagePullSecretsBuilder
public Generated.LocalObjectReference.Builder addImagePullSecretsBuilder()
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;
-
addImagePullSecretsBuilder
public Generated.LocalObjectReference.Builder addImagePullSecretsBuilder(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;
-
getImagePullSecretsBuilderList
public List<Generated.LocalObjectReference.Builder> getImagePullSecretsBuilderList()
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
public 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;- Specified by:
hasAutomountServiceAccountTokenin interfaceGenerated.ServiceAccountOrBuilder- Returns:
- Whether the automountServiceAccountToken field is set.
-
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. +optional
optional bool automountServiceAccountToken = 4;- Specified by:
getAutomountServiceAccountTokenin interfaceGenerated.ServiceAccountOrBuilder- Returns:
- The automountServiceAccountToken.
-
setAutomountServiceAccountToken
public Generated.ServiceAccount.Builder setAutomountServiceAccountToken(boolean value)
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;- Parameters:
value- The automountServiceAccountToken to set.- Returns:
- This builder for chaining.
-
clearAutomountServiceAccountToken
public Generated.ServiceAccount.Builder clearAutomountServiceAccountToken()
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:
- This builder for chaining.
-
setUnknownFields
public final Generated.ServiceAccount.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
mergeUnknownFields
public final Generated.ServiceAccount.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
-
-