pub struct MachineDeploymentMachineNamingStrategy {
pub template: Option<String>,
}
Expand description
machineNamingStrategy allows changing the naming pattern used when creating Machines. Note: InfraMachines & BootstrapConfigs will use the same name as the corresponding Machines.
Fields§
§template: Option<String>
template defines the template to use for generating the names of the
Machine objects.
If not defined, it will fallback to {{ .machineSet.name }}-{{ .random }}
.
If the generated name string exceeds 63 characters, it will be trimmed to
58 characters and will
get concatenated with a random suffix of length 5.
Length of the template string must not exceed 256 characters.
The template allows the following variables .cluster.name
,
.machineSet.name
and .random
.
The variable .cluster.name
retrieves the name of the cluster object
that owns the Machines being created.
The variable .machineSet.name
retrieves the name of the MachineSet
object that owns the Machines being created.
The variable .random
is substituted with random alphanumeric string,
without vowels, of length 5. This variable is required part of the
template. If not provided, validation will fail.
Trait Implementations§
Source§impl Clone for MachineDeploymentMachineNamingStrategy
impl Clone for MachineDeploymentMachineNamingStrategy
Source§fn clone(&self) -> MachineDeploymentMachineNamingStrategy
fn clone(&self) -> MachineDeploymentMachineNamingStrategy
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for MachineDeploymentMachineNamingStrategy
impl Default for MachineDeploymentMachineNamingStrategy
Source§fn default() -> MachineDeploymentMachineNamingStrategy
fn default() -> MachineDeploymentMachineNamingStrategy
Source§impl<'de> Deserialize<'de> for MachineDeploymentMachineNamingStrategy
impl<'de> Deserialize<'de> for MachineDeploymentMachineNamingStrategy
Source§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>,
Source§impl JsonSchema for MachineDeploymentMachineNamingStrategy
impl JsonSchema for MachineDeploymentMachineNamingStrategy
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for MachineDeploymentMachineNamingStrategy
impl PartialEq for MachineDeploymentMachineNamingStrategy
Source§fn eq(&self, other: &MachineDeploymentMachineNamingStrategy) -> bool
fn eq(&self, other: &MachineDeploymentMachineNamingStrategy) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MachineDeploymentMachineNamingStrategy
Auto Trait Implementations§
impl Freeze for MachineDeploymentMachineNamingStrategy
impl RefUnwindSafe for MachineDeploymentMachineNamingStrategy
impl Send for MachineDeploymentMachineNamingStrategy
impl Sync for MachineDeploymentMachineNamingStrategy
impl Unpin for MachineDeploymentMachineNamingStrategy
impl UnwindSafe for MachineDeploymentMachineNamingStrategy
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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