Struct ServiceAccount
pub struct ServiceAccount {
pub automount_service_account_token: Option<bool>,
pub image_pull_secrets: Option<Vec<LocalObjectReference>>,
pub metadata: ObjectMeta,
pub secrets: Option<Vec<ObjectReference>>,
}Expand description
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
Fields§
§automount_service_account_token: Option<bool>AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.
image_pull_secrets: Option<Vec<LocalObjectReference>>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
metadata: ObjectMetaStandard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
secrets: Option<Vec<ObjectReference>>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
Trait Implementations§
§impl Clone for ServiceAccount
impl Clone for ServiceAccount
§fn clone(&self) -> ServiceAccount
fn clone(&self) -> ServiceAccount
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ServiceAccount
impl Debug for ServiceAccount
§impl DeepMerge for ServiceAccount
impl DeepMerge for ServiceAccount
§fn merge_from(&mut self, other: ServiceAccount)
fn merge_from(&mut self, other: ServiceAccount)
other into self.§impl Default for ServiceAccount
impl Default for ServiceAccount
§fn default() -> ServiceAccount
fn default() -> ServiceAccount
§impl<'de> Deserialize<'de> for ServiceAccount
impl<'de> Deserialize<'de> for ServiceAccount
§fn deserialize<D>(
deserializer: D,
) -> Result<ServiceAccount, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ServiceAccount, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl JsonSchema for ServiceAccount
Available on crate feature schemars only.
impl JsonSchema for ServiceAccount
schemars only.§fn schema_name() -> Cow<'static, str>
fn schema_name() -> Cow<'static, str>
§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more§impl ListableResource for ServiceAccount
impl ListableResource for ServiceAccount
§impl Metadata for ServiceAccount
impl Metadata for ServiceAccount
§type Ty = ObjectMeta
type Ty = ObjectMeta
§fn metadata(&self) -> &<ServiceAccount as Metadata>::Ty
fn metadata(&self) -> &<ServiceAccount as Metadata>::Ty
§fn metadata_mut(&mut self) -> &mut <ServiceAccount as Metadata>::Ty
fn metadata_mut(&mut self) -> &mut <ServiceAccount as Metadata>::Ty
§impl PartialEq for ServiceAccount
impl PartialEq for ServiceAccount
§impl Resource for ServiceAccount
impl Resource for ServiceAccount
§const API_VERSION: &'static str = "v1"
const API_VERSION: &'static str = "v1"
Resource::GROUP] and [Resource::VERSION] (eg "apiextensions.k8s.io/v1beta1")
or just the version for resources without a group (eg "v1"). Read more§const GROUP: &'static str = ""
const GROUP: &'static str = ""
§const URL_PATH_SEGMENT: &'static str = "serviceaccounts"
const URL_PATH_SEGMENT: &'static str = "serviceaccounts"
§impl Serialize for ServiceAccount
impl Serialize for ServiceAccount
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl StructuralPartialEq for ServiceAccount
Auto Trait Implementations§
impl Freeze for ServiceAccount
impl RefUnwindSafe for ServiceAccount
impl Send for ServiceAccount
impl Sync for ServiceAccount
impl Unpin for ServiceAccount
impl UnwindSafe for ServiceAccount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<K> Lookup for Kwhere
K: Resource,
impl<K> Lookup for Kwhere
K: Resource,
§type DynamicType = <K as Resource>::DynamicType
type DynamicType = <K as Resource>::DynamicType
Resource::DynamicType.§fn resource_version(&self) -> Option<Cow<'_, str>>
fn resource_version(&self) -> Option<Cow<'_, str>>
§fn api_version(dyntype: &Self::DynamicType) -> Cow<'_, str>
fn api_version(dyntype: &Self::DynamicType) -> Cow<'_, str>
§fn to_object_ref(&self, dyntype: Self::DynamicType) -> ObjectRef<Self>
fn to_object_ref(&self, dyntype: Self::DynamicType) -> ObjectRef<Self>
ObjectRef] for this object.