You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// MinReadySeconds is the minimum number of seconds for which a Node for a newly created machine should be ready before considering the replica available.
127
132
// Defaults to 0 (machine will be considered available as soon as the Node is ready)
128
133
// +optional
@@ -246,6 +251,23 @@ type RemediationStrategy struct {
246
251
247
252
// ANCHOR_END: RemediationStrategy
248
253
254
+
// MachineNamingStrategy allows changing the naming pattern used when creating Machines.
255
+
// Note: InfraMachines will use the same name as the corresponding Machines.
256
+
typeMachineNamingStrategystruct {
257
+
// Template defines the template to use for generating the names of the Machine objects.
258
+
// If not defined, it will fallback to `{{ .machineDeployment.name }}-{{ .random }}`.
259
+
// If the generated name string exceeds 63 characters, it will be trimmed to 58 characters and will
260
+
// get concatenated with a random suffix of length 5.
261
+
// Length of the template string must not exceed 256 characters.
262
+
// The template allows the following variables `.cluster.name`, `.machineDeployment.name` and `.random`.
263
+
// The variable `.cluster.name` retrieves the name of the cluster object that owns the Machines being created.
264
+
// The variable `.machineDeployment.name` retrieves the name of the MachineDeployment object that owns the Machines being created.
265
+
// The variable `.random` is substituted with random alphanumeric string, without vowels, of length 5.
266
+
// +optional
267
+
// +kubebuilder:validation:MaxLength=256
268
+
Templatestring`json:"template,omitempty"`
269
+
}
270
+
249
271
// ANCHOR: MachineDeploymentStatus
250
272
251
273
// MachineDeploymentStatus defines the observed state of MachineDeployment.
0 commit comments