Added ignorenotfound flag for all resources' deletion (#2293)

Treat \"resource not found\" as a successful delete if ignorenotfound flag passed while deletion of Fission resource.
This commit is contained in:
Ankit Chawla
2022-01-06 17:30:05 +05:30
committed by GitHub
parent f54bd6a703
commit b27043518f
19 changed files with 69 additions and 8 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ func Commands() *cobra.Command {
}
wrapper.SetFlags(deleteCmd, flag.FlagSet{
Required: []flag.Flag{flag.CanaryName},
Optional: []flag.Flag{flag.NamespaceCanary},
Optional: []flag.Flag{flag.NamespaceCanary, flag.IgnoreNotFound},
})
listCmd := &cobra.Command{