Skip to content

Commit 223820b

Browse files
chore: bump sdk (#1963)
* chore: bump sdk * Fix * FIx Co-authored-by: scaleway-bot <[email protected]>
1 parent c505d9d commit 223820b

22 files changed

+2262
-3518
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
uses: golangci/golangci-lint-action@v2
1212
with:
1313
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
14-
version: v1.32.2
14+
version: v1.42.1

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ linters:
1616
- errcheck
1717
- goconst
1818
- goimports
19-
- golint
2019
- goprintffuncname
2120
- gosec
2221
- gosimple
@@ -25,6 +24,7 @@ linters:
2524
- misspell
2625
- nakedret
2726
- nolintlint
27+
- revive
2828
- rowserrcheck
2929
- staticcheck
3030
- structcheck

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
github.com/kubernetes-client/go-base v0.0.0-20190205182333-3d0e39759d98
2222
github.com/mattn/go-colorable v0.1.8
2323
github.com/mattn/go-isatty v0.0.13
24-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210707121459-c4899e298c98
24+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210915130531-0285df8effc0
2525
github.com/sergi/go-diff v1.1.0 // indirect
2626
github.com/spf13/cobra v1.2.1
2727
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L
241241
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
242242
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
243243
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
244-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210707121459-c4899e298c98 h1:2VLw+nHp0U3R1VQApoDRUY45f+o4Knu9CMk/0hgSy+k=
245-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210707121459-c4899e298c98/go.mod h1:CJJ5VAbozOl0yEw7nHB9+7BXTJbIn6h7W+f6Gau5IP8=
244+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210915130531-0285df8effc0 h1:rjfzAgwrQV3eZqOfC9K84vd08SAsIqpFR4twmgF6+uc=
245+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210915130531-0285df8effc0/go.mod h1:CJJ5VAbozOl0yEw7nHB9+7BXTJbIn6h7W+f6Gau5IP8=
246246
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
247247
github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
248248
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=

internal/gotty/resize.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//nolint
12
// +build !windows
23

34
package gotty
@@ -9,7 +10,7 @@ import (
910
)
1011

1112
func subscribeToResize(resizeChan chan bool) func() {
12-
sigChan := make(chan os.Signal)
13+
sigChan := make(chan os.Signal, 1)
1314

1415
go func() {
1516
for {

internal/namespaces/k8s/v1/testdata/test-get-cluster-simple.cassette.yaml

Lines changed: 35 additions & 35 deletions
Large diffs are not rendered by default.

internal/namespaces/k8s/v1/testdata/test-get-cluster-simple.golden

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
ID 5e04d093-20e1-4d2b-9a6d-3d7a15016dbf
3+
ID 6e68d924-956f-4511-bfdb-1a796a190d33
4+
Type kapsule
45
Name cli-test
56
Status creating
67
Version 1.17.3
@@ -9,8 +10,8 @@ OrganizationID 951df375-e094-4d26-97c1-ba548eeb9c42
910
ProjectID 951df375-e094-4d26-97c1-ba548eeb9c42
1011
Cni cilium
1112
Description -
12-
ClusterURL https://5e04d093-20e1-4d2b-9a6d-3d7a15016dbf.api.k8s.fr-par.scw.cloud:6443
13-
DNSWildcard *.5e04d093-20e1-4d2b-9a6d-3d7a15016dbf.nodes.k8s.fr-par.scw.cloud
13+
ClusterURL https://6e68d924-956f-4511-bfdb-1a796a190d33.api.k8s.fr-par.scw.cloud:6443
14+
DNSWildcard *.6e68d924-956f-4511-bfdb-1a796a190d33.nodes.k8s.fr-par.scw.cloud
1415
CreatedAt few seconds ago
1516
UpdatedAt few seconds ago
1617
DashboardEnabled false
@@ -43,10 +44,11 @@ GroupsPrefix -
4344

4445
Pools:
4546
ID NAME STATUS VERSION NODE TYPE MIN SIZE SIZE MAX SIZE AUTOSCALING AUTOHEALING
46-
22c9b049-abde-4ef1-8a4a-833cc65a856b default scaling 1.17.3 dev1_m 0 1 1 false false
47+
42b228cf-ad4b-458e-b69b-046f8aa3c10c default scaling 1.17.3 dev1_m 0 1 1 false false
4748
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
4849
{
49-
"id": "5e04d093-20e1-4d2b-9a6d-3d7a15016dbf",
50+
"id": "6e68d924-956f-4511-bfdb-1a796a190d33",
51+
"type": "kapsule",
5052
"name": "cli-test",
5153
"status": "creating",
5254
"version": "1.17.3",
@@ -56,8 +58,8 @@ ID NAME STATUS VERSION NODE TYPE MIN
5658
"tags": [],
5759
"cni": "cilium",
5860
"description": "",
59-
"cluster_url": "https://5e04d093-20e1-4d2b-9a6d-3d7a15016dbf.api.k8s.fr-par.scw.cloud:6443",
60-
"dns_wildcard": "*.5e04d093-20e1-4d2b-9a6d-3d7a15016dbf.nodes.k8s.fr-par.scw.cloud",
61+
"cluster_url": "https://6e68d924-956f-4511-bfdb-1a796a190d33.api.k8s.fr-par.scw.cloud:6443",
62+
"dns_wildcard": "*.6e68d924-956f-4511-bfdb-1a796a190d33.nodes.k8s.fr-par.scw.cloud",
6163
"created_at": "1970-01-01T00:00:00.0Z",
6264
"updated_at": "1970-01-01T00:00:00.0Z",
6365
"autoscaler_config": {
@@ -96,7 +98,7 @@ ID NAME STATUS VERSION NODE TYPE MIN
9698
"apiserver_cert_sans": [],
9799
"pools": [
98100
{
99-
"id": "22c9b049-abde-4ef1-8a4a-833cc65a856b",
101+
"id": "42b228cf-ad4b-458e-b69b-046f8aa3c10c",
100102
"name": "default",
101103
"status": "scaling",
102104
"version": "1.17.3",

0 commit comments

Comments
 (0)