From 3735b0e52917ef7af6886cc3738a4eebde522d67 Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Tue, 7 Apr 2020 16:27:01 +0100 Subject: [PATCH] Remove global namespace option --- config/cmd/cmd.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config/cmd/cmd.go b/config/cmd/cmd.go index 3eb6fb5e..34e417dd 100644 --- a/config/cmd/cmd.go +++ b/config/cmd/cmd.go @@ -314,12 +314,6 @@ var ( EnvVars: []string{"MICRO_CONFIG"}, Usage: "The source of the config to be used to get configuration", }, - &cli.StringFlag{ - Name: "namespace", - EnvVars: []string{"MICRO_NAMESPACE"}, - Usage: "The namespace the service belongs to", - Value: auth.DefaultNamespace, - }, } DefaultBrokers = map[string]func(...broker.Option) broker.Broker{ @@ -684,9 +678,6 @@ func (c *cmd) Before(ctx *cli.Context) error { ctx.String("auth_id"), ctx.String("auth_secret"), )) } - if len(ctx.String("namespace")) > 0 { - authOpts = append(authOpts, auth.Namespace(ctx.String("namespace"))) - } if len(ctx.String("auth_public_key")) > 0 { authOpts = append(authOpts, auth.PublicKey(ctx.String("auth_public_key")))