From b5bc5edbd2987f13828b423912c78d6ca1cb5488 Mon Sep 17 00:00:00 2001 From: Marc Campbell Date: Mon, 11 Nov 2019 15:58:02 +0000 Subject: [PATCH] Cluster Token cannot be empty --- pkg/kotsadm/kotsadm.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/kotsadm/kotsadm.go b/pkg/kotsadm/kotsadm.go index 7aa40fe7e6..1a7369204d 100644 --- a/pkg/kotsadm/kotsadm.go +++ b/pkg/kotsadm/kotsadm.go @@ -179,6 +179,10 @@ func Deploy(deployOptions DeployOptions) error { return errors.Wrap(err, "failed to get namespace") } + if deployOptions.AutoCreateClusterToken == "" { + deployOptions.AutoCreateClusterToken = uuid.New().String() + } + if err := ensureKotsadm(deployOptions, clientset, log); err != nil { return errors.Wrap(err, "failed to deploy admin console") }