1
0
mirror of https://github.com/docker/cli.git synced 2025-08-31 23:02:07 +03:00

Add a common interface between different Kubernetes Stack API versions and use it in kubernetes stack commands

* Add kubernetes Stack API v1beta2 client
* Upgrade v1beta1 client to remove generated code

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
Silvin Lubecki
2018-01-31 15:37:14 +01:00
committed by Mathieu Champlon
parent 99bd7ed693
commit f958c66a6d
92 changed files with 8000 additions and 1244 deletions

View File

@@ -17,6 +17,8 @@ func TestGetStackAPIVersion(t *testing.T) {
}{
{"no stack api", makeGroups(), true, ""},
{"v1beta1", makeGroups(groupVersion{"compose.docker.com", []string{"v1beta1"}}), false, StackAPIV1Beta1},
{"v1beta2", makeGroups(groupVersion{"compose.docker.com", []string{"v1beta2"}}), false, StackAPIV1Beta2},
{"most recent has precedence", makeGroups(groupVersion{"compose.docker.com", []string{"v1beta1", "v1beta2"}}), false, StackAPIV1Beta2},
}
for _, test := range tests {