From 16bf8e5f87c59b39caeca7346aa38c10ee0538bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 25 Nov 2020 10:37:58 +0100 Subject: [PATCH 1/6] feat(k8s): add marshallers for get versions --- internal/namespaces/k8s/v1/custom.go | 1 + internal/namespaces/k8s/v1/custom_version.go | 37 ++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/internal/namespaces/k8s/v1/custom.go b/internal/namespaces/k8s/v1/custom.go index f3547e471a..8b68f4d8f5 100644 --- a/internal/namespaces/k8s/v1/custom.go +++ b/internal/namespaces/k8s/v1/custom.go @@ -24,6 +24,7 @@ func GetCommands() *core.Commands { k8sPoolWaitCommand(), )) + human.RegisterMarshalerFunc(k8s.Version{}, versionMarshalerFunc) human.RegisterMarshalerFunc(k8s.Cluster{}, clusterMarshalerFunc) human.RegisterMarshalerFunc(k8s.ClusterStatus(""), human.EnumMarshalFunc(clusterStatusMarshalSpecs)) human.RegisterMarshalerFunc(k8s.PoolStatus(""), human.EnumMarshalFunc(poolStatusMarshalSpecs)) diff --git a/internal/namespaces/k8s/v1/custom_version.go b/internal/namespaces/k8s/v1/custom_version.go index 935d95b765..9781511fe0 100644 --- a/internal/namespaces/k8s/v1/custom_version.go +++ b/internal/namespaces/k8s/v1/custom_version.go @@ -4,6 +4,7 @@ import ( "context" "github.com/scaleway/scaleway-cli/internal/core" + "github.com/scaleway/scaleway-cli/internal/human" k8s "github.com/scaleway/scaleway-sdk-go/api/k8s/v1" ) @@ -20,3 +21,39 @@ func versionListBuilder(c *core.Command) *core.Command { return c } + +func versionMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) { + type tmp k8s.Version + version := tmp(i.(k8s.Version)) + + // Sections + opt.Sections = []*human.MarshalSection{ + { + FieldName: "AvailableCnis", + Title: "Available CNIs", + }, + { + FieldName: "AvailableIngresses", + Title: "Available Ingresses", + }, + { + FieldName: "AvailableContainerRuntimes", + Title: "Available Container Runtimes", + }, + { + FieldName: "AvailableFeatureGates", + Title: "Available Feature Gates", + }, + { + FieldName: "AvailableAdmissionPlugins", + Title: "Available Admission Plugins", + }, + } + + str, err := human.Marshal(version, opt) + if err != nil { + return "", err + } + + return str, nil +} From d6620eb14caf21f5bfcbe752798cdd607bb22e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Tue, 9 Feb 2021 16:19:00 +0100 Subject: [PATCH 2/6] Fix --- .../namespaces/k8s/v1/custom_version_test.go | 21 ++++++ .../test-get-version-simple.cassette.yaml | 35 ++++++++++ .../testdata/test-get-version-simple.golden | 68 +++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 internal/namespaces/k8s/v1/custom_version_test.go create mode 100644 internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml create mode 100644 internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden diff --git a/internal/namespaces/k8s/v1/custom_version_test.go b/internal/namespaces/k8s/v1/custom_version_test.go new file mode 100644 index 0000000000..8c674820a0 --- /dev/null +++ b/internal/namespaces/k8s/v1/custom_version_test.go @@ -0,0 +1,21 @@ +package k8s + +import ( + "testing" + + "github.com/scaleway/scaleway-cli/internal/core" +) + +func Test_GetVersion(t *testing.T) { + //// + // Simple use cases + //// + t.Run("simple", core.Test(&core.TestConfig{ + Commands: GetCommands(), + Cmd: "scw k8s version get 1.20.2", + Check: core.TestCheckCombine( + core.TestCheckGolden(), + core.TestCheckExitCode(0), + ), + })) +} diff --git a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml new file mode 100644 index 0000000000..a5cef458c3 --- /dev/null +++ b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml @@ -0,0 +1,35 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + User-Agent: + - scaleway-sdk-go/v1.0.0-beta.7+dev (go1.15.7; darwin; amd64) cli-e2e-test + url: https://api.scaleway.com/k8s/v1/regions/fr-par/versions/1.20.2 + method: GET + response: + body: '{"region":"fr-par","name":"1.20.2","label":"Kubernetes 1.20.2","available_cnis":["cilium","calico","weave","flannel"],"available_ingresses":["none","nginx","traefik","traefik2"],"available_container_runtimes":["containerd","crio","docker"],"available_feature_gates":["TTLAfterFinished","HPAScaleToZero","ServiceTopology","EphemeralContainers","KubeletCredentialProviders","GenericEphemeralVolume"],"available_admission_plugins":["PodSecurityPolicy","PodNodeSelector","AlwaysPullImages","PodPreset","PodTolerationRestriction"],"available_kubelet_args":{"cpuCFSQuota":"bool","cpuCFSQuotaPeriod":"duration","cpuManagerPolicy":"enum:none|static","maxPods":"uint16"}}' + headers: + Content-Length: + - "662" + Content-Security-Policy: + - default-src 'none'; frame-ancestors 'none' + Content-Type: + - application/json + Date: + - Tue, 09 Feb 2021 15:18:51 GMT + Server: + - Scaleway API-Gateway + Strict-Transport-Security: + - max-age=63072000 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + X-Request-Id: + - 0445af44-3011-45d3-a2d9-8d31286bc013 + status: 200 OK + code: 200 + duration: "" diff --git a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden new file mode 100644 index 0000000000..e13243d63c --- /dev/null +++ b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden @@ -0,0 +1,68 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +🟩🟩🟩 STDOUT️ 🟩🟩🟩️ +Name 1.20.2 +Label Kubernetes 1.20.2 +Region fr-par +AvailableKubeletArgs.cpuCFSQuota bool +AvailableKubeletArgs.cpuCFSQuotaPeriod duration +AvailableKubeletArgs.cpuManagerPolicy enum:none|static +AvailableKubeletArgs.maxPods uint16 + +Available CNIs: +[cilium calico weave flannel] + +Available Ingresses: +[none nginx traefik traefik2] + +Available Container Runtimes: +[containerd crio docker] + +Available Feature Gates: +[TTLAfterFinished HPAScaleToZero ServiceTopology EphemeralContainers KubeletCredentialProviders GenericEphemeralVolume] + +Available Admission Plugins: +[PodSecurityPolicy PodNodeSelector AlwaysPullImages PodPreset PodTolerationRestriction] +🟩🟩🟩 JSON STDOUT 🟩🟩🟩 +{ + "name": "1.20.2", + "label": "Kubernetes 1.20.2", + "region": "fr-par", + "available_cnis": [ + "cilium", + "calico", + "weave", + "flannel" + ], + "available_ingresses": [ + "none", + "nginx", + "traefik", + "traefik2" + ], + "available_container_runtimes": [ + "containerd", + "crio", + "docker" + ], + "available_feature_gates": [ + "TTLAfterFinished", + "HPAScaleToZero", + "ServiceTopology", + "EphemeralContainers", + "KubeletCredentialProviders", + "GenericEphemeralVolume" + ], + "available_admission_plugins": [ + "PodSecurityPolicy", + "PodNodeSelector", + "AlwaysPullImages", + "PodPreset", + "PodTolerationRestriction" + ], + "available_kubelet_args": { + "cpuCFSQuota": "bool", + "cpuCFSQuotaPeriod": "duration", + "cpuManagerPolicy": "enum:none|static", + "maxPods": "uint16" + } +} From 389367f4b65e47954139a66d3abe8b3225c2b163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Tue, 9 Feb 2021 16:29:20 +0100 Subject: [PATCH 3/6] Fix --- internal/namespaces/k8s/v1/custom_version.go | 4 ++++ .../testdata/test-get-version-simple.cassette.yaml | 4 ++-- .../k8s/v1/testdata/test-get-version-simple.golden | 13 ++++++------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/internal/namespaces/k8s/v1/custom_version.go b/internal/namespaces/k8s/v1/custom_version.go index 9781511fe0..4a70ad9569 100644 --- a/internal/namespaces/k8s/v1/custom_version.go +++ b/internal/namespaces/k8s/v1/custom_version.go @@ -28,6 +28,10 @@ func versionMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) // Sections opt.Sections = []*human.MarshalSection{ + { + FieldName: "AvailableKubeletArgs", + Title: "Available Kubelet Arguments", + }, { FieldName: "AvailableCnis", Title: "Available CNIs", diff --git a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml index a5cef458c3..26a4aef0a7 100644 --- a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml +++ b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 09 Feb 2021 15:18:51 GMT + - Tue, 09 Feb 2021 15:29:13 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -29,7 +29,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 0445af44-3011-45d3-a2d9-8d31286bc013 + - 6d14aa62-a002-48de-832f-eb6653d8e46d status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden index e13243d63c..8caca5126f 100644 --- a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden +++ b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden @@ -1,12 +1,11 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ -Name 1.20.2 -Label Kubernetes 1.20.2 -Region fr-par -AvailableKubeletArgs.cpuCFSQuota bool -AvailableKubeletArgs.cpuCFSQuotaPeriod duration -AvailableKubeletArgs.cpuManagerPolicy enum:none|static -AvailableKubeletArgs.maxPods uint16 +Name 1.20.2 +Label Kubernetes 1.20.2 +Region fr-par + +Available Kubelet Arguments: +map[cpuCFSQuota:bool cpuCFSQuotaPeriod:duration cpuManagerPolicy:enum:none|static maxPods:uint16] Available CNIs: [cilium calico weave flannel] From 529af24c413afc346c0048fffd8c16f866914003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Tue, 9 Feb 2021 16:30:55 +0100 Subject: [PATCH 4/6] Fix --- internal/namespaces/k8s/v1/custom_version.go | 2 +- internal/namespaces/k8s/v1/custom_version_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/namespaces/k8s/v1/custom_version.go b/internal/namespaces/k8s/v1/custom_version.go index 4a70ad9569..f4a82cd086 100644 --- a/internal/namespaces/k8s/v1/custom_version.go +++ b/internal/namespaces/k8s/v1/custom_version.go @@ -30,7 +30,7 @@ func versionMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) opt.Sections = []*human.MarshalSection{ { FieldName: "AvailableKubeletArgs", - Title: "Available Kubelet Arguments", + Title: "Available Kubelet Arguments", }, { FieldName: "AvailableCnis", diff --git a/internal/namespaces/k8s/v1/custom_version_test.go b/internal/namespaces/k8s/v1/custom_version_test.go index 8c674820a0..615d364e2a 100644 --- a/internal/namespaces/k8s/v1/custom_version_test.go +++ b/internal/namespaces/k8s/v1/custom_version_test.go @@ -11,8 +11,8 @@ func Test_GetVersion(t *testing.T) { // Simple use cases //// t.Run("simple", core.Test(&core.TestConfig{ - Commands: GetCommands(), - Cmd: "scw k8s version get 1.20.2", + Commands: GetCommands(), + Cmd: "scw k8s version get 1.20.2", Check: core.TestCheckCombine( core.TestCheckGolden(), core.TestCheckExitCode(0), From 4497df4bc88e162f4f95e192c8efaa429b121ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 10 Feb 2021 12:15:08 +0100 Subject: [PATCH 5/6] Fix --- internal/human/marshal_func.go | 17 +++++++++++ internal/human/marshal_test.go | 10 +++---- internal/namespaces/k8s/v1/custom.go | 3 ++ internal/namespaces/k8s/v1/custom_version.go | 29 +++++++++++++++++++ .../test-get-version-simple.cassette.yaml | 4 +-- .../testdata/test-get-version-simple.golden | 19 +++++++++--- 6 files changed, 71 insertions(+), 11 deletions(-) diff --git a/internal/human/marshal_func.go b/internal/human/marshal_func.go index 2208a75f5e..5b8a60bc21 100644 --- a/internal/human/marshal_func.go +++ b/internal/human/marshal_func.go @@ -4,6 +4,7 @@ import ( "fmt" "net" "reflect" + "sort" "strings" "sync" "time" @@ -117,6 +118,22 @@ func init() { } return strings.Join(res, " "), nil }) + marshalerFuncs.Store(reflect.TypeOf(map[string]string{}), func(i interface{}, opt *MarshalOpt) (string, error) { + res := []string(nil) + m := i.(map[string]string) + + // maps are unordered, we need to have a sorted key list to keep a consistent printing + keys := make([]string, 0, len(m)) + for k := range m { + keys = append(keys, k) + } + sort.Strings(keys) + + for _, k := range keys { + res = append(res, fmt.Sprintf("%s => %s", k, m[k])) + } + return strings.Join(res, "\n"), nil + }) } // TODO: implement the same logic as args.RegisterMarshalFunc(), where i must be a pointer diff --git a/internal/human/marshal_test.go b/internal/human/marshal_test.go index ac47156499..f01958a721 100644 --- a/internal/human/marshal_test.go +++ b/internal/human/marshal_test.go @@ -124,11 +124,11 @@ func TestMarshal(t *testing.T) { Structs.0.Bool false Structs.0.Time a long while ago Structs.0.Stringer a stringer - Map.key1 v1 - Map.key2 v2 - Stringer a stringer - StringerPtr a stringer - Size 13 kB + Map key1 => v1 + key2 => v2 + Stringer a stringer + StringerPtr a stringer + Size 13 kB `, })) diff --git a/internal/namespaces/k8s/v1/custom.go b/internal/namespaces/k8s/v1/custom.go index 8b68f4d8f5..026adb9636 100644 --- a/internal/namespaces/k8s/v1/custom.go +++ b/internal/namespaces/k8s/v1/custom.go @@ -26,6 +26,9 @@ func GetCommands() *core.Commands { human.RegisterMarshalerFunc(k8s.Version{}, versionMarshalerFunc) human.RegisterMarshalerFunc(k8s.Cluster{}, clusterMarshalerFunc) + human.RegisterMarshalerFunc([]k8s.CNI{}, cniSliceMarshalerFunc) + human.RegisterMarshalerFunc([]k8s.Ingress{}, ingressSliceMarshalerFunc) + human.RegisterMarshalerFunc([]k8s.Runtime{}, runtimeSliceMarshalerFunc) human.RegisterMarshalerFunc(k8s.ClusterStatus(""), human.EnumMarshalFunc(clusterStatusMarshalSpecs)) human.RegisterMarshalerFunc(k8s.PoolStatus(""), human.EnumMarshalFunc(poolStatusMarshalSpecs)) human.RegisterMarshalerFunc(k8s.NodeStatus(""), human.EnumMarshalFunc(nodeStatusMarshalSpecs)) diff --git a/internal/namespaces/k8s/v1/custom_version.go b/internal/namespaces/k8s/v1/custom_version.go index f4a82cd086..85ea332dc3 100644 --- a/internal/namespaces/k8s/v1/custom_version.go +++ b/internal/namespaces/k8s/v1/custom_version.go @@ -2,6 +2,8 @@ package k8s import ( "context" + "fmt" + "strings" "github.com/scaleway/scaleway-cli/internal/core" "github.com/scaleway/scaleway-cli/internal/human" @@ -22,6 +24,33 @@ func versionListBuilder(c *core.Command) *core.Command { return c } +func runtimeSliceMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) { + runtimeSlice := i.([]k8s.Runtime) + var res []string + for _, value := range runtimeSlice { + res = append(res, fmt.Sprintf("- %s", value.String())) + } + return strings.Join(res, "\n"), nil +} + +func ingressSliceMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) { + runtimeSlice := i.([]k8s.Ingress) + var res []string + for _, value := range runtimeSlice { + res = append(res, fmt.Sprintf("- %s", value.String())) + } + return strings.Join(res, "\n"), nil +} + +func cniSliceMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) { + runtimeSlice := i.([]k8s.CNI) + var res []string + for _, value := range runtimeSlice { + res = append(res, fmt.Sprintf("- %s", value.String())) + } + return strings.Join(res, "\n"), nil +} + func versionMarshalerFunc(i interface{}, opt *human.MarshalOpt) (string, error) { type tmp k8s.Version version := tmp(i.(k8s.Version)) diff --git a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml index 26a4aef0a7..0a28fd444b 100644 --- a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml +++ b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 09 Feb 2021 15:29:13 GMT + - Wed, 10 Feb 2021 11:05:09 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -29,7 +29,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - 6d14aa62-a002-48de-832f-eb6653d8e46d + - ac046352-718b-47bb-8806-2e785b5a7b99 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden index 8caca5126f..4f0becb0db 100644 --- a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden +++ b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden @@ -5,16 +5,27 @@ Label Kubernetes 1.20.2 Region fr-par Available Kubelet Arguments: -map[cpuCFSQuota:bool cpuCFSQuotaPeriod:duration cpuManagerPolicy:enum:none|static maxPods:uint16] +cpuCFSQuota => bool +cpuCFSQuotaPeriod => duration +cpuManagerPolicy => enum:none|static +maxPods => uint16 Available CNIs: -[cilium calico weave flannel] +- cilium +- calico +- weave +- flannel Available Ingresses: -[none nginx traefik traefik2] +- none +- nginx +- traefik +- traefik2 Available Container Runtimes: -[containerd crio docker] +- containerd +- crio +- docker Available Feature Gates: [TTLAfterFinished HPAScaleToZero ServiceTopology EphemeralContainers KubeletCredentialProviders GenericEphemeralVolume] From 6442831614506d0d65d693c9f28ca22c8441d923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 10 Feb 2021 16:25:23 +0100 Subject: [PATCH 6/6] Fix --- internal/human/marshal_func.go | 17 ----------------- internal/human/marshal_test.go | 10 +++++----- .../test-get-version-simple.cassette.yaml | 4 ++-- .../v1/testdata/test-get-version-simple.golden | 5 +---- 4 files changed, 8 insertions(+), 28 deletions(-) diff --git a/internal/human/marshal_func.go b/internal/human/marshal_func.go index 5b8a60bc21..2208a75f5e 100644 --- a/internal/human/marshal_func.go +++ b/internal/human/marshal_func.go @@ -4,7 +4,6 @@ import ( "fmt" "net" "reflect" - "sort" "strings" "sync" "time" @@ -118,22 +117,6 @@ func init() { } return strings.Join(res, " "), nil }) - marshalerFuncs.Store(reflect.TypeOf(map[string]string{}), func(i interface{}, opt *MarshalOpt) (string, error) { - res := []string(nil) - m := i.(map[string]string) - - // maps are unordered, we need to have a sorted key list to keep a consistent printing - keys := make([]string, 0, len(m)) - for k := range m { - keys = append(keys, k) - } - sort.Strings(keys) - - for _, k := range keys { - res = append(res, fmt.Sprintf("%s => %s", k, m[k])) - } - return strings.Join(res, "\n"), nil - }) } // TODO: implement the same logic as args.RegisterMarshalFunc(), where i must be a pointer diff --git a/internal/human/marshal_test.go b/internal/human/marshal_test.go index f01958a721..ac47156499 100644 --- a/internal/human/marshal_test.go +++ b/internal/human/marshal_test.go @@ -124,11 +124,11 @@ func TestMarshal(t *testing.T) { Structs.0.Bool false Structs.0.Time a long while ago Structs.0.Stringer a stringer - Map key1 => v1 - key2 => v2 - Stringer a stringer - StringerPtr a stringer - Size 13 kB + Map.key1 v1 + Map.key2 v2 + Stringer a stringer + StringerPtr a stringer + Size 13 kB `, })) diff --git a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml index 0a28fd444b..6173d1ddec 100644 --- a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml +++ b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.cassette.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 10 Feb 2021 11:05:09 GMT + - Wed, 10 Feb 2021 15:25:17 GMT Server: - Scaleway API-Gateway Strict-Transport-Security: @@ -29,7 +29,7 @@ interactions: X-Frame-Options: - DENY X-Request-Id: - - ac046352-718b-47bb-8806-2e785b5a7b99 + - 6b5b146e-bdd6-485f-b38c-a8782f4eba52 status: 200 OK code: 200 duration: "" diff --git a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden index 4f0becb0db..0a1305ff1d 100644 --- a/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden +++ b/internal/namespaces/k8s/v1/testdata/test-get-version-simple.golden @@ -5,10 +5,7 @@ Label Kubernetes 1.20.2 Region fr-par Available Kubelet Arguments: -cpuCFSQuota => bool -cpuCFSQuotaPeriod => duration -cpuManagerPolicy => enum:none|static -maxPods => uint16 +map[cpuCFSQuota:bool cpuCFSQuotaPeriod:duration cpuManagerPolicy:enum:none|static maxPods:uint16] Available CNIs: - cilium