pub struct MachineSetMachineNamingStrategy {
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 MachineSetMachineNamingStrategy
impl Clone for MachineSetMachineNamingStrategy
Source§fn clone(&self) -> MachineSetMachineNamingStrategy
fn clone(&self) -> MachineSetMachineNamingStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for MachineSetMachineNamingStrategy
impl Default for MachineSetMachineNamingStrategy
Source§fn default() -> MachineSetMachineNamingStrategy
fn default() -> MachineSetMachineNamingStrategy
Source§impl<'de> Deserialize<'de> for MachineSetMachineNamingStrategy
impl<'de> Deserialize<'de> for MachineSetMachineNamingStrategy
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 MachineSetMachineNamingStrategy
impl JsonSchema for MachineSetMachineNamingStrategy
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 MachineSetMachineNamingStrategy
impl PartialEq for MachineSetMachineNamingStrategy
Source§fn eq(&self, other: &MachineSetMachineNamingStrategy) -> bool
fn eq(&self, other: &MachineSetMachineNamingStrategy) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MachineSetMachineNamingStrategy
Auto Trait Implementations§
impl Freeze for MachineSetMachineNamingStrategy
impl RefUnwindSafe for MachineSetMachineNamingStrategy
impl Send for MachineSetMachineNamingStrategy
impl Sync for MachineSetMachineNamingStrategy
impl Unpin for MachineSetMachineNamingStrategy
impl UnwindSafe for MachineSetMachineNamingStrategy
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