From d5520b851e7e59b6a1b616e363e8764ebe56ede0 Mon Sep 17 00:00:00 2001 From: Matt Boersma Date: Mon, 2 Dec 2024 11:00:40 -0700 Subject: [PATCH] Skip name validation for AzureJSONMachine controller, revisited --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index b55233f24e1..09f642b7274 100644 --- a/main.go +++ b/main.go @@ -409,7 +409,7 @@ func registerControllers(ctx context.Context, mgr manager.Manager) { Timeouts: timeouts, WatchFilterValue: watchFilterValue, CredentialCache: credCache, - }).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: azureMachineConcurrency, SkipNameValidation: ptr.To(true)}); err != nil { + }).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: azureMachineConcurrency}); err != nil { setupLog.Error(err, "unable to create controller", "controller", "AzureJSONTemplate") os.Exit(1) } @@ -420,7 +420,7 @@ func registerControllers(ctx context.Context, mgr manager.Manager) { Timeouts: timeouts, WatchFilterValue: watchFilterValue, CredentialCache: credCache, - }).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: azureMachineConcurrency}); err != nil { + }).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: azureMachineConcurrency, SkipNameValidation: ptr.To(true)}); err != nil { setupLog.Error(err, "unable to create controller", "controller", "AzureJSONMachine") os.Exit(1) } @@ -478,7 +478,7 @@ func registerControllers(ctx context.Context, mgr manager.Manager) { Timeouts: timeouts, WatchFilterValue: watchFilterValue, CredentialCache: credCache, - }).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: azureMachinePoolConcurrency}); err != nil { + }).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: azureMachinePoolConcurrency, SkipNameValidation: ptr.To(true)}); err != nil { setupLog.Error(err, "unable to create controller", "controller", "AzureJSONMachinePool") os.Exit(1) }