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