Skip to content

Commit e6c3590

Browse files
committed
Skip name validation for AzureJSONMachine controller
1 parent 534365a commit e6c3590

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import (
4141
"k8s.io/client-go/tools/leaderelection/resourcelock"
4242
cgrecord "k8s.io/client-go/tools/record"
4343
"k8s.io/klog/v2"
44+
"k8s.io/utils/ptr"
4445
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
4546
kubeadmv1 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1beta1"
4647
"sigs.k8s.io/cluster-api/controllers/clustercache"
@@ -408,7 +409,7 @@ func registerControllers(ctx context.Context, mgr manager.Manager) {
408409
Timeouts: timeouts,
409410
WatchFilterValue: watchFilterValue,
410411
CredentialCache: credCache,
411-
}).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: azureMachineConcurrency}); err != nil {
412+
}).SetupWithManager(ctx, mgr, controller.Options{MaxConcurrentReconciles: azureMachineConcurrency, SkipNameValidation: ptr.To(true)}); err != nil {
412413
setupLog.Error(err, "unable to create controller", "controller", "AzureJSONTemplate")
413414
os.Exit(1)
414415
}

0 commit comments

Comments
 (0)