Skip to content

Commit 0dc7913

Browse files
authored
fix(secrets): remove views on yaml (#2826)
1 parent a8acd72 commit 0dc7913

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/kubernetes-client/go-base v0.0.0-20190205182333-3d0e39759d98
1919
github.com/mattn/go-colorable v0.1.13
2020
github.com/mattn/go-isatty v0.0.17
21-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230302154047-eb02d5ea817c
21+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230303092001-0f695e4585de
2222
github.com/spf13/cobra v1.6.1
2323
github.com/spf13/pflag v1.0.5
2424
github.com/stretchr/testify v1.8.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw
7070
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
7171
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
7272
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
73-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230302154047-eb02d5ea817c h1:M7kbyuRW2quzkTGZwSaFxtI4NqsiFi/NTOlkH6xzmGY=
74-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230302154047-eb02d5ea817c/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
73+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230303092001-0f695e4585de h1:IdJVz0PCDS+QYPzstxG7HA1BFuEMUR2EXNy8b4jcvys=
74+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.13.0.20230303092001-0f695e4585de/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
7575
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
7676
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
7777
github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=

internal/namespaces/secret/v1alpha1/secret_cli.go

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -261,23 +261,6 @@ func secretSecretList() *core.Command {
261261
return resp.Secrets, nil
262262

263263
},
264-
View: &core.View{Fields: []*core.ViewField{
265-
{
266-
FieldName: "ID",
267-
},
268-
{
269-
FieldName: "Name",
270-
},
271-
{
272-
FieldName: "CreatedAt",
273-
},
274-
{
275-
FieldName: "UpdatedAt",
276-
},
277-
{
278-
FieldName: "ProjectID",
279-
},
280-
}},
281264
}
282265
}
283266

@@ -492,23 +475,6 @@ func secretVersionList() *core.Command {
492475
return resp.Versions, nil
493476

494477
},
495-
View: &core.View{Fields: []*core.ViewField{
496-
{
497-
FieldName: "SecretID",
498-
},
499-
{
500-
FieldName: "Name",
501-
},
502-
{
503-
FieldName: "CreatedAt",
504-
},
505-
{
506-
FieldName: "UpdatedAt",
507-
},
508-
{
509-
FieldName: "ProjectID",
510-
},
511-
}},
512478
}
513479
}
514480

0 commit comments

Comments
 (0)