From 175b678ba4ab08995924dc367c3fce695e426644 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 29 Oct 2017 17:39:27 -0700 Subject: [PATCH] Support listing releases from all namespaces (#61) * Support listing releases from all namespaces * List releases with all statuses if no status is given --- README.md | 6 + _proto/swift/v2/tiller.proto | 3 - _proto/swift/v2/tiller.schema.json | 4 - _proto/swift/v2/tiller.swagger.json | 13 -- client/js/schemas/swift/v2/tiller.schema.json | 4 - docs/README.md | 6 + pkg/apis/swift/v2/tiller.pb.go | 192 +++++++++--------- pkg/apis/swift/v2/tiller.schema.go | 4 - pkg/release/server.go | 4 +- 9 files changed, 105 insertions(+), 131 deletions(-) diff --git a/README.md b/README.md index e39520b7..0ba82495 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,13 @@ GET http://127.0.0.1:9855/tiller/v2/version/json - **Summarize releases** ``` +# List releases from all namespaces GET http://127.0.0.1:9855/tiller/v2/releases/json + +# List releases from one namespace +GET http://127.0.0.1:9855/tiller/v2/releases/json?namespace=default + +# List releases from all namespaces with list of statuses GET http://127.0.0.1:9855/tiller/v2/releases/json?status_codes=DEPLOYED&&status_codes=DELETED Available query parameters: diff --git a/_proto/swift/v2/tiller.proto b/_proto/swift/v2/tiller.proto index 91c3df91..af6d8af9 100644 --- a/_proto/swift/v2/tiller.proto +++ b/_proto/swift/v2/tiller.proto @@ -162,9 +162,6 @@ message SummarizeReleasesRequest { // Namespace is the filter to select releases only from a specific namespace. string namespace = 7; - - // if true, list releases with all status codes - bool all = 8; } // ListSort defines sorting fields on a release list. diff --git a/_proto/swift/v2/tiller.schema.json b/_proto/swift/v2/tiller.schema.json index ed26b327..65823fd7 100644 --- a/_proto/swift/v2/tiller.schema.json +++ b/_proto/swift/v2/tiller.schema.json @@ -350,10 +350,6 @@ "v2SummarizeReleasesRequest": { "description": "SummarizeReleasesRequest requests a list of releases.\n\nReleases can be retrieved in chunks by setting limit and offset.\n\nReleases can be sorted according to a few pre-determined sort stategies.", "properties": { - "all": { - "title": "if true, list releases with all status codes", - "type": "boolean" - }, "filter": { "description": "Filter is a regular expression used to filter which releases should be listed.\n\nAnything that matches the regexp will be included in the results.", "type": "string" diff --git a/_proto/swift/v2/tiller.swagger.json b/_proto/swift/v2/tiller.swagger.json index 7f0a1761..b6e90d4b 100644 --- a/_proto/swift/v2/tiller.swagger.json +++ b/_proto/swift/v2/tiller.swagger.json @@ -688,11 +688,6 @@ "v2SummarizeReleasesRequest": { "description": "SummarizeReleasesRequest requests a list of releases.\n\nReleases can be retrieved in chunks by setting limit and offset.\n\nReleases can be sorted according to a few pre-determined sort stategies.", "properties": { - "all": { - "format": "boolean", - "title": "if true, list releases with all status codes", - "type": "boolean" - }, "filter": { "description": "Filter is a regular expression used to filter which releases should be listed.\n\nAnything that matches the regexp will be included in the results.", "type": "string" @@ -939,14 +934,6 @@ "name": "namespace", "required": false, "type": "string" - }, - { - "description": "if true, list releases with all status codes.", - "format": "boolean", - "in": "query", - "name": "all", - "required": false, - "type": "boolean" } ], "responses": { diff --git a/client/js/schemas/swift/v2/tiller.schema.json b/client/js/schemas/swift/v2/tiller.schema.json index ed26b327..65823fd7 100644 --- a/client/js/schemas/swift/v2/tiller.schema.json +++ b/client/js/schemas/swift/v2/tiller.schema.json @@ -350,10 +350,6 @@ "v2SummarizeReleasesRequest": { "description": "SummarizeReleasesRequest requests a list of releases.\n\nReleases can be retrieved in chunks by setting limit and offset.\n\nReleases can be sorted according to a few pre-determined sort stategies.", "properties": { - "all": { - "title": "if true, list releases with all status codes", - "type": "boolean" - }, "filter": { "description": "Filter is a regular expression used to filter which releases should be listed.\n\nAnything that matches the regexp will be included in the results.", "type": "string" diff --git a/docs/README.md b/docs/README.md index e39520b7..0ba82495 100644 --- a/docs/README.md +++ b/docs/README.md @@ -13,7 +13,13 @@ GET http://127.0.0.1:9855/tiller/v2/version/json - **Summarize releases** ``` +# List releases from all namespaces GET http://127.0.0.1:9855/tiller/v2/releases/json + +# List releases from one namespace +GET http://127.0.0.1:9855/tiller/v2/releases/json?namespace=default + +# List releases from all namespaces with list of statuses GET http://127.0.0.1:9855/tiller/v2/releases/json?status_codes=DEPLOYED&&status_codes=DELETED Available query parameters: diff --git a/pkg/apis/swift/v2/tiller.pb.go b/pkg/apis/swift/v2/tiller.pb.go index a4c441c4..32a309cc 100644 --- a/pkg/apis/swift/v2/tiller.pb.go +++ b/pkg/apis/swift/v2/tiller.pb.go @@ -134,8 +134,6 @@ type SummarizeReleasesRequest struct { StatusCodes []string `protobuf:"bytes,6,rep,name=status_codes,json=statusCodes" json:"status_codes,omitempty"` // Namespace is the filter to select releases only from a specific namespace. Namespace string `protobuf:"bytes,7,opt,name=namespace" json:"namespace,omitempty"` - // if true, list releases with all status codes - All bool `protobuf:"varint,8,opt,name=all" json:"all,omitempty"` } func (m *SummarizeReleasesRequest) Reset() { *m = SummarizeReleasesRequest{} } @@ -192,13 +190,6 @@ func (m *SummarizeReleasesRequest) GetNamespace() string { return "" } -func (m *SummarizeReleasesRequest) GetAll() bool { - if m != nil { - return m.All - } - return false -} - // ListSort defines sorting fields on a release list. type ListSort struct { } @@ -1339,96 +1330,95 @@ var _ReleaseService_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("tiller.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1448 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0xdd, 0x72, 0xdb, 0x44, - 0x14, 0x46, 0x96, 0x7f, 0xe4, 0xe3, 0x24, 0x38, 0x4b, 0x7e, 0x14, 0x53, 0x4a, 0x2a, 0xfa, 0xe3, - 0xa6, 0xe0, 0x50, 0xf3, 0x33, 0x03, 0x1d, 0x2e, 0xd2, 0x34, 0x93, 0xb6, 0xa4, 0x69, 0x47, 0x26, - 0x65, 0xa6, 0x17, 0x78, 0x36, 0xf6, 0x3a, 0x15, 0x95, 0xb5, 0x46, 0xbb, 0x4e, 0x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4f, 0xb1, 0xca, 0xa5, 0x53, 0xbc, 0x14, 0x94, 0x4b, 0x31, - 0x28, 0x2b, 0x68, 0x39, 0x06, 0x45, 0x7f, 0xe4, 0x0b, 0x08, 0xbf, 0x18, 0xf0, 0xea, 0xd0, 0xfb, - 0x1e, 0xa5, 0x35, 0x24, 0xfd, 0xe6, 0x53, 0x59, 0x9b, 0xc6, 0x55, 0x21, 0xfa, 0x30, 0x86, 0x68, - 0x0d, 0x55, 0x27, 0x90, 0x13, 0xaa, 0x08, 0x12, 0xe2, 0xb7, 0x92, 0x25, 0x75, 0x6a, 0x8e, 0x63, - 0x29, 0x79, 0x1e, 0x8f, 0x63, 0x69, 0xe8, 0xe8, 0x4d, 0x36, 0x0c, 0x9d, 0xd6, 0xb0, 0x9b, 0xd7, - 0x60, 0xb1, 0x45, 0xbb, 0xa3, 0xa1, 0x6f, 0xce, 0xa8, 0x62, 0x1f, 0x84, 0x94, 0xd3, 0x07, 0xc6, - 0xa3, 0xcc, 0x61, 0x7d, 0x3f, 0x2f, 0xfe, 0xff, 0xf1, 0xde, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xff, 0x39, 0x24, 0x63, 0x18, 0x12, 0x00, 0x00, + // 1433 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x5b, 0x6f, 0x1b, 0x45, + 0x14, 0x66, 0x7d, 0xf7, 0x71, 0x12, 0x9c, 0x21, 0x97, 0x8d, 0x29, 0x25, 0x5d, 0x7a, 0x71, 0x53, + 0x70, 0xa8, 0xb9, 0x48, 0x50, 0xf1, 0x90, 0xa6, 0x51, 0xda, 0x92, 0xa6, 0xd5, 0x9a, 0x14, 0xa9, + 0x0f, 0x58, 0x13, 0x7b, 0x9c, 0x2e, 0x5d, 0xef, 0x98, 0x9d, 0x71, 0xda, 0x50, 0x21, 0x55, 0x79, + 0x82, 0x67, 0x10, 0x48, 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, 0xba, 0x63, 0x69, 0x52, 0x89, 0x34, + 0x0e, 0x07, 0x7b, 0x34, 0x90, 0xea, 0xc9, 0xff, 0x61, 0x30, 0x01, 0x3f, 0x3d, 0x0c, 0xff, 0x79, + 0x3c, 0xeb, 0x26, 0x0d, 0x38, 0x09, 0xf8, 0x99, 0xf0, 0xa3, 0xeb, 0xb0, 0xd8, 0xa1, 0x61, 0x17, + 0xf3, 0xe6, 0x21, 0xf6, 0xfb, 0x84, 0x35, 0x31, 0x6b, 0x7e, 0xc9, 0x68, 0x20, 0x72, 0x16, 0x5c, + 0x24, 0x8d, 0x0f, 0x85, 0x6d, 0x83, 0xdd, 0x65, 0x34, 0x70, 0x76, 0x60, 0xc5, 0x90, 0x5c, 0xd5, + 0xbc, 0x0e, 0x79, 0x55, 0x8d, 0x00, 0x30, 0x56, 0xd6, 0xda, 0xcb, 0x79, 0x91, 0x86, 0x85, 0xbd, + 0x5e, 0x1b, 0x73, 0xad, 0xe9, 0x49, 0x75, 0x5c, 0x81, 0xac, 0x90, 0x81, 0xa2, 0x6f, 0x3e, 0xa1, + 0x8c, 0xe8, 0xaf, 0x2b, 0xed, 0x91, 0x86, 0x64, 0x3d, 0x4a, 0x78, 0x46, 0x0d, 0x49, 0x0f, 0xb4, + 0x0c, 0xf9, 0x76, 0x78, 0xd4, 0x0c, 0xfb, 0x81, 0x10, 0x5c, 0xc1, 0xcd, 0xb5, 0xc3, 0x23, 0xb7, + 0x1f, 0xa0, 0xb7, 0x60, 0xb6, 0xed, 0x31, 0xbc, 0xef, 0x93, 0xe6, 0x63, 0x4a, 0x9f, 0x30, 0x21, + 0xb1, 0x82, 0x3b, 0xa3, 0x26, 0x6f, 0x47, 0x73, 0xa8, 0x12, 0x6d, 0xbc, 0x56, 0x48, 0x30, 0x97, + 0x32, 0x2b, 0xb8, 0x83, 0x71, 0x44, 0x3b, 0xf7, 0xba, 0x84, 0xf6, 0xb9, 0x38, 0xb9, 0xd2, 0xae, + 0x1e, 0x46, 0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xc8, 0xd4, 0x10, 0xf3, 0xcb, 0xa7, 0xb2, 0x36, 0x8d, 0xab, 0x42, 0xf4, 0x61, 0x0c, + 0xd1, 0x1a, 0xaa, 0x4e, 0x20, 0x27, 0x54, 0x11, 0x24, 0xc4, 0x6f, 0x25, 0x4b, 0xea, 0xd4, 0x1c, + 0xc7, 0x52, 0xf2, 0x3c, 0x1e, 0xc7, 0xd2, 0xd0, 0xd1, 0x9b, 0x6c, 0x18, 0x3a, 0xad, 0x61, 0x37, + 0xaf, 0xc1, 0x62, 0x8b, 0x76, 0x47, 0x43, 0xdf, 0x9c, 0x51, 0xc5, 0x3e, 0x08, 0x29, 0xa7, 0x0f, + 0xac, 0x47, 0xa9, 0xc3, 0xfa, 0x7e, 0x4e, 0xfc, 0xb7, 0xe3, 0xbd, 0x7f, 0x03, 0x00, 0x00, 0xff, + 0xff, 0xfe, 0x74, 0xb2, 0x74, 0x06, 0x12, 0x00, 0x00, } diff --git a/pkg/apis/swift/v2/tiller.schema.go b/pkg/apis/swift/v2/tiller.schema.go index 5e85c922..19410511 100644 --- a/pkg/apis/swift/v2/tiller.schema.go +++ b/pkg/apis/swift/v2/tiller.schema.go @@ -650,10 +650,6 @@ func init() { }, "description": "SummarizeReleasesRequest requests a list of releases.\n\nReleases can be retrieved in chunks by setting limit and offset.\n\nReleases can be sorted according to a few pre-determined sort stategies.", "properties": { - "all": { - "title": "if true, list releases with all status codes", - "type": "boolean" - }, "filter": { "description": "Filter is a regular expression used to filter which releases should be listed.\n\nAnything that matches the regexp will be included in the results.", "type": "string" diff --git a/pkg/release/server.go b/pkg/release/server.go index 3af9f7ef..dc7376d0 100644 --- a/pkg/release/server.go +++ b/pkg/release/server.go @@ -34,14 +34,14 @@ func (s *Server) SummarizeReleases(ctx context.Context, req *proto.SummarizeRele listReq := rls.ListReleasesRequest{ Filter: req.Filter, Limit: req.Limit, - Namespace: stringz.Val(req.Namespace, core.NamespaceDefault), + Namespace: req.Namespace, Offset: req.Offset, SortBy: rls.ListSort_SortBy(rls.ListSort_SortBy_value[req.SortBy.String()]), SortOrder: rls.ListSort_SortOrder(rls.ListSort_SortOrder_value[req.SortOrder.String()]), StatusCodes: []hrls.Status_Code{}, } - if req.All { // list all releases + if len(req.StatusCodes) == 0 { // list all releases listReq.StatusCodes = []hrls.Status_Code{ hrls.Status_UNKNOWN, hrls.Status_DEPLOYED,