Skip to content

Commit

Permalink
Merge pull request #139 from replicatedhq/cluster-token-req
Browse files Browse the repository at this point in the history
Cluster Token cannot be empty
  • Loading branch information
marccampbell authored Nov 11, 2019
2 parents 274ea20 + b5bc5ed commit d79443d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kotsadm/kotsadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit d79443d

Please sign in to comment.