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.
131
136
// Defaults to 0 (machine will be considered available as soon as the Node is ready)
132
137
// +optional
@@ -250,6 +255,23 @@ type RemediationStrategy struct {
250
255
251
256
// ANCHOR_END: RemediationStrategy
252
257
258
+
// MachineNamingStrategy allows changing the naming pattern used when creating Machines.
259
+
// Note: InfraMachines will use the same name as the corresponding Machines.
260
+
typeMachineNamingStrategystruct {
261
+
// Template defines the template to use for generating the names of the Machine objects.
262
+
// If not defined, it will fallback to `{{ .machineDeployment.name }}-{{ .random }}`.
263
+
// If the generated name string exceeds 63 characters, it will be trimmed to 58 characters and will
264
+
// get concatenated with a random suffix of length 5.
265
+
// Length of the template string must not exceed 256 characters.
266
+
// The template allows the following variables `.cluster.name`, `.machineDeployment.name` and `.random`.
267
+
// The variable `.cluster.name` retrieves the name of the cluster object that owns the Machines being created.
268
+
// The variable `.machineDeployment.name` retrieves the name of the MachineDeployment object that owns the Machines being created.
269
+
// The variable `.random` is substituted with random alphanumeric string, without vowels, of length 5.
270
+
// +optional
271
+
// +kubebuilder:validation:MaxLength=256
272
+
Templatestring`json:"template,omitempty"`
273
+
}
274
+
253
275
// ANCHOR: MachineDeploymentStatus
254
276
255
277
// MachineDeploymentStatus defines the observed state of MachineDeployment.
0 commit comments