Open seaunderwater opened 4 years ago
In addition to this, both crit create token
and crit generate token
specific cobra.MinimumNArgs(1)
. crit create token
should instead specify cobra.MaximumNArgs(1)
and crit generate token
should specify cobra.NoArgs
.
When creating a bootstrap token using
crit create token
, no output is returned to the user:This is inconvenient for the following reasons:
There is no indication that the command was successful.
The user is left to search for the token using
kubectl get secrets
. This becomes difficult when there are several tokens:The user has to base64 decode and concatenate
<token-id>.<token-secret>
: