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:
Shubham Nazare
2022-06-13 11:48:26 +05:30
committed by GitHub
parent 979880ae2d
commit 5d010fe1fa
+1 -1
View File
@@ -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 {