diff --git a/pkg/fission-cli/cmd/function/update.go b/pkg/fission-cli/cmd/function/update.go index d3759f5a..594f8cb6 100644 --- a/pkg/fission-cli/cmd/function/update.go +++ b/pkg/fission-cli/cmd/function/update.go @@ -67,7 +67,6 @@ func (opts *UpdateSubCommand) complete(input cli.Input) error { } envName := input.String(flagkey.FnEnvironmentName) - envNamespace := input.String(flagkey.NamespaceEnvironment) // if the new env specified is the same as the old one, no need to update package // same is true for all update parameters, but, for now, we don't check all of them - because, its ok to // re-write the object with same old values, we just end up getting a new resource version for the object. @@ -75,10 +74,6 @@ func (opts *UpdateSubCommand) complete(input cli.Input) error { envName = "" } - if envNamespace == function.Spec.Environment.Namespace { - envNamespace = "" - } - pkgName := input.String(flagkey.FnPackageName) entrypoint := input.String(flagkey.FnEntrypoint) @@ -133,10 +128,6 @@ func (opts *UpdateSubCommand) complete(input cli.Input) error { function.Spec.Environment.Name = envName } - if len(envNamespace) > 0 { - function.Spec.Environment.Namespace = envNamespace - } - if len(entrypoint) > 0 { function.Spec.Package.FunctionName = entrypoint }