mprove warning/verbose messages around namespace in Fission CLI (#2572)

Removed extra warning message while creating HTTP trigger, and updated some verbose logs to show info related to the namespace.
This commit is contained in:
neha_gupta
2022-10-17 17:52:34 +05:30
committed by GitHub
parent 8d65b062f1
commit facd14de90
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func (opts *DeleteSubCommand) do(input cli.Input) (err error) {
if err != nil {
return errors.Wrap(err, "error creating environment")
}
console.Verbose(2, "Namespace used to delete resource: %s ", currentContextNS)
console.Verbose(2, "Searching for resource in %s Namespace", currentContextNS)
m := &metav1.ObjectMeta{
Name: input.String(flagkey.EnvName),
@@ -126,8 +126,6 @@ func (opts *CreateSubCommand) complete(input cli.Input) error {
Namespace: userProvidedNS,
}
console.Warn(fmt.Sprintf("Ns: %v", userProvidedNS))
// For Specs, the spec validate checks for function reference
if input.Bool(flagkey.SpecSave) {