1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-31 15:11:31 +00:00

Remove unused namespace field

This commit is contained in:
Darren Shepherd
2020-02-04 21:31:02 -07:00
parent b51e14edfb
commit 87a107e23e
3 changed files with 0 additions and 13 deletions

View File

@@ -11,7 +11,6 @@ type Config struct {
KubeConfig string
HTTPSListenPort int
HTTPListenPort int
Namespace string
WebhookConfig authcli.WebhookConfig
}
@@ -36,7 +35,6 @@ func (c *Config) ToServer() (*server.Server, error) {
}
return &server.Server{
Namespace: c.Namespace,
RestConfig: restConfig,
AuthMiddleware: auth,
}, nil
@@ -59,12 +57,6 @@ func Flags(config *Config) []cli.Flag {
Value: 8080,
Destination: &config.HTTPListenPort,
},
cli.StringFlag{
Name: "namespace",
EnvVar: "NAMESPACE",
Value: "steve",
Destination: &config.Namespace,
},
}
return append(flags, authcli.Flags(&config.WebhookConfig)...)