Fix pre-check failure during new fission installation (#2437)
* Add pre-check flag to root cmd * Make precheck flag optional * Remove pre from global optional flag Signed-off-by: Shubham Nazare <shubham4443@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ func App() *cobra.Command {
|
||||
func(input cli.Input) error {
|
||||
console.Verbosity = input.Int(flagkey.Verbosity)
|
||||
|
||||
if input.IsSet(flagkey.ClientOnly) {
|
||||
if input.IsSet(flagkey.ClientOnly) || input.IsSet(flagkey.PreCheckOnly) {
|
||||
// TODO: use fake rest client for offline spec generation
|
||||
cmd.SetClientset(client.MakeFakeClientset(nil))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user