diff --git a/go.mod b/go.mod index 1d9cb4c2e6..a66e59229d 100644 --- a/go.mod +++ b/go.mod @@ -24,7 +24,7 @@ require ( github.com/moby/buildkit v0.11.6 github.com/opencontainers/go-digest v1.0.0 github.com/pkg/errors v0.9.1 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230721074430-6966aee6e8df + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230724145839-1ed69add4815 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.7.0 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index b8bfc389b3..e830dff45b 100644 --- a/go.sum +++ b/go.sum @@ -497,8 +497,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230721074430-6966aee6e8df h1:LVutljqAyGnmpPt3pAjAEYgnWnesakRy3v111zsjrW4= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230721074430-6966aee6e8df/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230724145839-1ed69add4815 h1:FAzYKNVhJhVyhbF690kRj+iaGGFtROrnw3UtSeNP4s8= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.19.0.20230724145839-1ed69add4815/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index 2d7145af98..e7ddaa0e7c 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -3138,6 +3138,12 @@ func instanceIPList() *core.Command { { FieldName: "Address", }, + { + FieldName: "Prefix", + }, + { + FieldName: "Type", + }, { FieldName: "Reverse", }, diff --git a/internal/namespaces/instance/v1/testdata/test-ip-list-simple.golden b/internal/namespaces/instance/v1/testdata/test-ip-list-simple.golden index 4e998b0567..7de7fae92f 100644 --- a/internal/namespaces/instance/v1/testdata/test-ip-list-simple.golden +++ b/internal/namespaces/instance/v1/testdata/test-ip-list-simple.golden @@ -1,11 +1,11 @@ 🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 🟩🟩🟩 STDOUT️ 🟩🟩🟩️ -ID ADDRESS REVERSE PROJECT SERVER ID SERVER NAME TAGS ZONE ORGANIZATION -52f3bf8e-006f-48dc-9e2f-293ed2330dd1 51.158.113.81 - 32f707c5-df07-43c7-8b57-6e09b687dd03 ac2f54b4-3c02-4fc4-b7f7-85f7a4683a8d oss-exporter [] fr-par-1 32f707c5-df07-43c7-8b57-6e09b687dd03 -15312268-a2e4-48d2-bc7a-d86db2f7f493 51.158.102.193 - 951df375-e094-4d26-97c1-ba548eeb9c42 [] fr-par-1 951df375-e094-4d26-97c1-ba548eeb9c42 -8ed1c207-86db-4e60-84cd-0a4e84031239 51.15.253.183 - 951df375-e094-4d26-97c1-ba548eeb9c42 fa37ff62-4665-4b94-93bf-385d264a7b4d juju [] fr-par-1 951df375-e094-4d26-97c1-ba548eeb9c42 -687f1b17-1d8d-4267-9b69-22025f6a52e8 51.15.251.251 - 951df375-e094-4d26-97c1-ba548eeb9c42 [] fr-par-1 951df375-e094-4d26-97c1-ba548eeb9c42 -dc78c1dd-4436-4193-b82f-94bd5881ea35 51.15.215.79 - 951df375-e094-4d26-97c1-ba548eeb9c42 [] fr-par-1 951df375-e094-4d26-97c1-ba548eeb9c42 +ID ADDRESS PREFIX TYPE REVERSE PROJECT SERVER ID SERVER NAME TAGS ZONE ORGANIZATION +52f3bf8e-006f-48dc-9e2f-293ed2330dd1 51.158.113.81 unknown_iptype - 32f707c5-df07-43c7-8b57-6e09b687dd03 ac2f54b4-3c02-4fc4-b7f7-85f7a4683a8d oss-exporter [] fr-par-1 32f707c5-df07-43c7-8b57-6e09b687dd03 +15312268-a2e4-48d2-bc7a-d86db2f7f493 51.158.102.193 unknown_iptype - 951df375-e094-4d26-97c1-ba548eeb9c42 [] fr-par-1 951df375-e094-4d26-97c1-ba548eeb9c42 +8ed1c207-86db-4e60-84cd-0a4e84031239 51.15.253.183 unknown_iptype - 951df375-e094-4d26-97c1-ba548eeb9c42 fa37ff62-4665-4b94-93bf-385d264a7b4d juju [] fr-par-1 951df375-e094-4d26-97c1-ba548eeb9c42 +687f1b17-1d8d-4267-9b69-22025f6a52e8 51.15.251.251 unknown_iptype - 951df375-e094-4d26-97c1-ba548eeb9c42 [] fr-par-1 951df375-e094-4d26-97c1-ba548eeb9c42 +dc78c1dd-4436-4193-b82f-94bd5881ea35 51.15.215.79 unknown_iptype - 951df375-e094-4d26-97c1-ba548eeb9c42 [] fr-par-1 951df375-e094-4d26-97c1-ba548eeb9c42 🟩🟩🟩 JSON STDOUT 🟩🟩🟩 [ {