pub struct MachineSetMachineNaming {
pub template: Option<String>,
}Expand description
machineNaming 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 MachineSetMachineNaming
impl Clone for MachineSetMachineNaming
Source§fn clone(&self) -> MachineSetMachineNaming
fn clone(&self) -> MachineSetMachineNaming
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MachineSetMachineNaming
impl Debug for MachineSetMachineNaming
Source§impl Default for MachineSetMachineNaming
impl Default for MachineSetMachineNaming
Source§fn default() -> MachineSetMachineNaming
fn default() -> MachineSetMachineNaming
Source§impl<'de> Deserialize<'de> for MachineSetMachineNaming
impl<'de> Deserialize<'de> for MachineSetMachineNaming
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 MachineSetMachineNaming
impl JsonSchema for MachineSetMachineNaming
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 inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for MachineSetMachineNaming
impl PartialEq for MachineSetMachineNaming
Source§impl Serialize for MachineSetMachineNaming
impl Serialize for MachineSetMachineNaming
impl StructuralPartialEq for MachineSetMachineNaming
Auto Trait Implementations§
impl Freeze for MachineSetMachineNaming
impl RefUnwindSafe for MachineSetMachineNaming
impl Send for MachineSetMachineNaming
impl Sync for MachineSetMachineNaming
impl Unpin for MachineSetMachineNaming
impl UnwindSafe for MachineSetMachineNaming
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