From bf9d396f9fd441205b13b2bef1da622ad2d1b13b Mon Sep 17 00:00:00 2001 From: hirosassa Date: Sun, 30 May 2021 15:48:07 +0900 Subject: [PATCH 1/5] add gke workload page command --- README.md | 4 ++-- cli/gcp.go | 4 ++++ go.mod | 4 +--- go.sum | 49 ++++++++++----------------------------- providers/gcp/gcp.go | 37 ++++++++++++++++++++++------- providers/gcp/gcp_test.go | 28 ++++++++++++++++++++++ 6 files changed, 76 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index 46f1165..32cc8dc 100644 --- a/README.md +++ b/README.md @@ -303,9 +303,9 @@ $ biko gcp [product] [flag(s)] | App Engine | Go to GAE Dashboard | `appengine`, `gae` | - | | Compute Engine | Go to GCE page | `compute` | - | | Cloud Functions | Go to Cloud Functions page or the functions detail | `functions`, `f` | `--region, -r`, `--name, -n` | -| Cloud Run | Go to Cloud Run page or the deployments detail | `run` | `--region, -r`, `--name, -n` | +| Cloud Run | Go to Cloud Run page or the deployments detail | `run` | `--region, -r`, `--name, -n` | | KMS | Go to security's cryptographic keys page | `kms` | - | -| Kubernetes | Go to GKE page, or the cluster detail | `kubernetes`, `gke` | `--region, -r`, `--name, -n` | +| Kubernetes | Go to GKE page, or the cluster detail | `kubernetes`, `gke` | `--region, -r`, `--name, -n` `--namespace, -n` | **Storage** diff --git a/cli/gcp.go b/cli/gcp.go index cd8c9cf..b08bcf0 100644 --- a/cli/gcp.go +++ b/cli/gcp.go @@ -136,6 +136,10 @@ func newGCPGKECmd() cli.Command { Name: "name, n", Usage: "Name of the cluter", }, + cli.StringFlag{ + Name: "namespace, ns", + Usage: "Specify the namespaces of workload page to open (you can input multiple namespaces by comma speparated string)", + }, }, Action: func(c *cli.Context) error { gcp, err := gcp.GetProvider() diff --git a/go.mod b/go.mod index 5686489..e1c14c6 100644 --- a/go.mod +++ b/go.mod @@ -3,10 +3,8 @@ module github.com/KeisukeYamashita/biko require ( github.com/BurntSushi/toml v0.3.1 github.com/go-ini/ini v1.62.0 - github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect - github.com/k0kubun/pp v3.0.1+incompatible - github.com/mattn/go-colorable v0.1.4 // indirect github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 // indirect + github.com/stretchr/testify v1.7.0 github.com/urfave/cli v1.22.5 gopkg.in/ini.v1 v1.48.0 // indirect ) diff --git a/go.sum b/go.sum index 0aa1e10..3996aad 100644 --- a/go.sum +++ b/go.sum @@ -2,40 +2,15 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/go-ini/ini v1.48.0 h1:TvO60hO/2xgaaTWp2P0wUe4CFxwdMzfbkv3+343Xzqw= -github.com/go-ini/ini v1.48.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.49.0 h1:ymWFBUkwN3JFPjvjcJJ5TSTwh84M66QrH+8vOytLgRY= -github.com/go-ini/ini v1.49.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.50.0 h1:ogX6RS8VstVN8MJcwhEP78hHhWaI3klN02+97bByabY= -github.com/go-ini/ini v1.50.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.51.0 h1:VPJKXGzbKlyExUE8f41aV57yxkYx5R49yR6n7flp0M0= -github.com/go-ini/ini v1.51.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.51.1 h1:/QG3cj23k5V8mOl4JnNzUNhc1kr/jzMiNsNuWKcx8gM= -github.com/go-ini/ini v1.51.1/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.52.0 h1:3UeUAveYUTCYV/G0jNDiIrrtIeAl1oAjshYyU2PaAlQ= -github.com/go-ini/ini v1.52.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.54.0 h1:BHD3JkWSl+IbBEq2jHTdv16W/1ex7z9GFCHh0+ytm2M= -github.com/go-ini/ini v1.54.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.56.0 h1:6HjxSjqdmgnujDPhlzR4a44lxK3w03WPN8te0SoUSeM= -github.com/go-ini/ini v1.56.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.57.0 h1:Qwzj3wZQW+Plax5Ntj+GYe07DfGj1OH+aL1nMTMaNow= -github.com/go-ini/ini v1.57.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.60.2 h1:5Knh3NM49qPogjoA8WUnaa/S0eiJ5FbrJpRqJB3b5XE= -github.com/go-ini/ini v1.60.2/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-ini/ini v1.61.0 h1:+IytwU4FcXqB+i5Vqiu/Ybf/Jdin9Pwzdxs5lmuT10o= -github.com/go-ini/ini v1.61.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/go-ini/ini v1.62.0 h1:7VJT/ZXjzqSrvtraFp4ONq80hTcRQth1c9ZnQ3uNQvU= github.com/go-ini/ini v1.62.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM= -github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= -github.com/k0kubun/pp v3.0.1+incompatible h1:3tqvf7QgUnZ5tXO6pNAZlrvHgl6DvifjDrd9g2S9Z40= -github.com/k0kubun/pp v3.0.1+incompatible/go.mod h1:GWse8YhT0p8pT4ir3ZgBbfZild3tgzSScAn6HmfYukg= -github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -45,20 +20,20 @@ github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykE github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 h1:WN9BUFbdyOsSH/XohnWpXOlq9NBD5sGAB2FciQMUEe8= github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.2 h1:gsqYFH8bb9ekPA12kRo0hfjngWQjkJPlN9R0N78BoUo= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.4 h1:u7tSpNPPswAFymm8IehJhy4uJMlUuU/GmqSkvJ1InXA= -github.com/urfave/cli v1.22.4/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/urfave/cli v1.22.5 h1:lNq9sAHXK2qfdI8W+GRItjCEkI+2oR4d+MEHy1CKXoU= github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/ini.v1 v1.48.0 h1:URjZc+8ugRY5mL5uUeQH/a63JcHwdX9xZaWvmNWD7z8= gopkg.in/ini.v1 v1.48.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/providers/gcp/gcp.go b/providers/gcp/gcp.go index db4f7cf..64c2aec 100644 --- a/providers/gcp/gcp.go +++ b/providers/gcp/gcp.go @@ -19,6 +19,8 @@ import ( "net/url" "os" "path" + "strconv" + "strings" "github.com/KeisukeYamashita/biko/alias" "github.com/go-ini/ini" @@ -137,21 +139,24 @@ func (p *Provider) addProductPath(product string) { p.join(product) var db, table string if db = p.GetCtxString("database"); db != "" { - param := url.Values{} - param.Add("d", db) + q := p.URL.Query() + q.Add("d", db) if table = p.GetCtxString("table"); table != "" { - param.Add("t", table) + q.Add("t", table) } - p.URL.RawQuery = param.Encode() + p.URL.RawQuery = q.Encode() } case "kubernetes": p.join(product) - var region, name string + var region, name, namespace string if region = p.GetCtxString("region"); region != "" { p.join(fmt.Sprintf("details/%s", region)) if name = p.GetCtxString("name"); name != "" { p.join(name) } + } else if namespace = p.GetCtxString("namespace"); namespace != "" { + p.join("workload") + p.addGKEPageStateParam(namespace) } case "spanner": p.join(product) @@ -213,12 +218,28 @@ func (p *Provider) addProductPath(product string) { } func (p *Provider) addProjectParam() { - params := url.Values{} - params.Add("project", p.SDKConfig.Core.Project) - p.URL.RawQuery = params.Encode() + q := p.URL.Query() + q.Add("project", p.SDKConfig.Core.Project) + p.URL.RawQuery = q.Encode() + return +} + +func (p *Provider) addGKEPageStateParam(namespace string) { + q := p.URL.Query() + q.Add("pageState", constructPageStateParam(namespace)) + p.URL.RawQuery = q.Encode() return } +func constructPageStateParam(namespace string) string { + nss := strings.Split(namespace, ",") + quotedNSs := make([]string, 0, len(nss)) + for _, s := range nss { + quotedNSs = append(quotedNSs, strconv.Quote(s)) + } + return fmt.Sprintf("(\"savedViews\":(\"n\":[%s]))", strings.Join(quotedNSs, ",")) +} + // GetCtxString ... func (p *Provider) GetCtxString(str string) string { key := p.Ctx.String(str) diff --git a/providers/gcp/gcp_test.go b/providers/gcp/gcp_test.go index a40bf04..8003bde 100644 --- a/providers/gcp/gcp_test.go +++ b/providers/gcp/gcp_test.go @@ -17,6 +17,8 @@ package gcp import ( "reflect" "testing" + + "github.com/stretchr/testify/assert" ) const ( @@ -48,3 +50,29 @@ func TestGetSDKConfig(t *testing.T) { t.Fatalf("getSDKConfig failed not deep equal got:%v, want:%v", conf, want) } } + +func TestConstructPageStateParam(t *testing.T) { + tests := map[string]struct { + namespace string + want string + }{ + "single namespace": { + namespace: "abc", + want: "(\"savedViews\":(\"n\":[\"abc\"]))", + }, + "two namespaces": { + namespace: "test1,test2", + want: "(\"savedViews\":(\"n\":[\"test1\",\"test2\"]))", + }, + "three namespaces": { + namespace: "test1,test2,test3", + want: "(\"savedViews\":(\"n\":[\"test1\",\"test2\",\"test3\"]))", + }, + } + + for name, tt := range tests { + t.Run(name, func(t *testing.T) { + assert.Equal(t, tt.want, constructPageStateParam(tt.namespace)) + }) + } +} From 5e0029d8f898580931f14ca913967d4ce361b884 Mon Sep 17 00:00:00 2001 From: hirosassa Date: Sun, 30 May 2021 20:56:23 +0900 Subject: [PATCH 2/5] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32cc8dc..1b90ff0 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,7 @@ $ biko gcp [product] [flag(s)] | Cloud Functions | Go to Cloud Functions page or the functions detail | `functions`, `f` | `--region, -r`, `--name, -n` | | Cloud Run | Go to Cloud Run page or the deployments detail | `run` | `--region, -r`, `--name, -n` | | KMS | Go to security's cryptographic keys page | `kms` | - | -| Kubernetes | Go to GKE page, or the cluster detail | `kubernetes`, `gke` | `--region, -r`, `--name, -n` `--namespace, -n` | +| Kubernetes | Go to GKE page, or the cluster detail | `kubernetes`, `gke` | `--region, -r`, `--name, -n` `--namespace, -ns` | **Storage** From f2423e56b55668a6fff77964babdbc0da1187d54 Mon Sep 17 00:00:00 2001 From: hirosassa Date: Sat, 5 Jun 2021 19:53:04 +0900 Subject: [PATCH 3/5] apply review comment --- cli/gcp.go | 4 ++-- providers/gcp/gcp.go | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cli/gcp.go b/cli/gcp.go index b08bcf0..0fed348 100644 --- a/cli/gcp.go +++ b/cli/gcp.go @@ -137,8 +137,8 @@ func newGCPGKECmd() cli.Command { Usage: "Name of the cluter", }, cli.StringFlag{ - Name: "namespace, ns", - Usage: "Specify the namespaces of workload page to open (you can input multiple namespaces by comma speparated string)", + Name: "namespaces, ns", + Usage: "Namespaces of workload page to open (you can input multiple namespaces by comma-speparated string)", }, }, Action: func(c *cli.Context) error { diff --git a/providers/gcp/gcp.go b/providers/gcp/gcp.go index 64c2aec..c4baf11 100644 --- a/providers/gcp/gcp.go +++ b/providers/gcp/gcp.go @@ -148,15 +148,15 @@ func (p *Provider) addProductPath(product string) { } case "kubernetes": p.join(product) - var region, name, namespace string + var region, name, namespaces string if region = p.GetCtxString("region"); region != "" { p.join(fmt.Sprintf("details/%s", region)) if name = p.GetCtxString("name"); name != "" { p.join(name) } - } else if namespace = p.GetCtxString("namespace"); namespace != "" { + } else if namespaces = p.GetCtxString("namespaces"); namespaces != "" { p.join("workload") - p.addGKEPageStateParam(namespace) + p.addGKEPageStateParam(namespaces) } case "spanner": p.join(product) @@ -231,13 +231,13 @@ func (p *Provider) addGKEPageStateParam(namespace string) { return } -func constructPageStateParam(namespace string) string { - nss := strings.Split(namespace, ",") - quotedNSs := make([]string, 0, len(nss)) +func constructPageStateParam(rawNamespaces string) string { + nss := strings.Split(rawNamespaces, ",") + quotedNamespaces := make([]string, 0, len(nss)) for _, s := range nss { - quotedNSs = append(quotedNSs, strconv.Quote(s)) + quotedNamespaces = append(quotedNamespaces, strconv.Quote(s)) } - return fmt.Sprintf("(\"savedViews\":(\"n\":[%s]))", strings.Join(quotedNSs, ",")) + return fmt.Sprintf("(\"savedViews\":(\"n\":[%s]))", strings.Join(quotedNamespaces, ",")) } // GetCtxString ... From 196f61e7cb92ff3465786e632e1e8f29bc9fb04c Mon Sep 17 00:00:00 2001 From: hirosassa Date: Sat, 5 Jun 2021 19:56:52 +0900 Subject: [PATCH 4/5] fix --- providers/gcp/gcp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/gcp/gcp.go b/providers/gcp/gcp.go index c4baf11..754bfbd 100644 --- a/providers/gcp/gcp.go +++ b/providers/gcp/gcp.go @@ -224,9 +224,9 @@ func (p *Provider) addProjectParam() { return } -func (p *Provider) addGKEPageStateParam(namespace string) { +func (p *Provider) addGKEPageStateParam(namespaces string) { q := p.URL.Query() - q.Add("pageState", constructPageStateParam(namespace)) + q.Add("pageState", constructPageStateParam(namespaces)) p.URL.RawQuery = q.Encode() return } From 13ae27bd7f37c340cca7bc0da10fb183d4fd24fd Mon Sep 17 00:00:00 2001 From: hirosassa Date: Sat, 5 Jun 2021 20:02:29 +0900 Subject: [PATCH 5/5] fix readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b90ff0..013ca43 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,7 @@ $ biko gcp [product] [flag(s)] | Cloud Functions | Go to Cloud Functions page or the functions detail | `functions`, `f` | `--region, -r`, `--name, -n` | | Cloud Run | Go to Cloud Run page or the deployments detail | `run` | `--region, -r`, `--name, -n` | | KMS | Go to security's cryptographic keys page | `kms` | - | -| Kubernetes | Go to GKE page, or the cluster detail | `kubernetes`, `gke` | `--region, -r`, `--name, -n` `--namespace, -ns` | +| Kubernetes | Go to GKE page, or the cluster detail | `kubernetes`, `gke` | `--region, -r`, `--name, -n` `--namespaces, -ns` | **Storage**