Struct k8s_cluster_api::v1beta1::bootstrap::kubeadm::BootstrapToken [−][src]
pub struct BootstrapToken {
pub token: String,
pub description: Option<String>,
pub ttl: Option<i64>,
pub expires: Option<Time>,
pub usages: Vec<String>,
pub groups: Vec<String>,
}
Expand description
BootstrapToken describes one bootstrap token, stored as a Secret in the cluster.
Fields
token: String
Token is used for establishing bidirectional trust between nodes and control-planes. Used for joining nodes in the cluster.
description: Option<String>
Description sets a human-friendly message why this token exists and what it’s used for, so other administrators can know its purpose.
ttl: Option<i64>
TTL defines the time to live for this token. Defaults to 24h. Expires and TTL are mutually exclusive.
expires: Option<Time>
Expires specifies the timestamp when this token expires. Defaults to being set dynamically at runtime based on the TTL. Expires and TTL are mutually exclusive.
usages: Vec<String>
Usages describes the ways in which this token can be used. Can by default be used for establishing bidirectional trust, but that can be changed here.
groups: Vec<String>
Groups specifies the extra groups that this token will authenticate as when/if used for authentication
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BootstrapToken
impl Send for BootstrapToken
impl Sync for BootstrapToken
impl Unpin for BootstrapToken
impl UnwindSafe for BootstrapToken
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more