Skip to content

Commit e050ce1

Browse files
authored
chore(serverless): deprecate CreateToken (#5185)
1 parent 40fca90 commit e050ce1

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

cmd/scw/testdata/test-all-usage-container-token-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create a new revocable token.
3+
Deprecated in favor of IAM authentication.
44

55
USAGE:
66
scw container token create [arg=value ...]

cmd/scw/testdata/test-all-usage-function-token-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create a new revocable token.
3+
Deprecated in favor of IAM authentication.
44

55
USAGE:
66
scw function token create [arg=value ...]

docs/commands/container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ Token management commands.
586586

587587
### Create a new revocable token
588588

589-
Create a new revocable token.
589+
Deprecated in favor of IAM authentication.
590590

591591
**Usage:**
592592

docs/commands/function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ Token management commands.
625625

626626
### Create a new revocable token
627627

628-
Create a new revocable token.
628+
Deprecated in favor of IAM authentication.
629629

630630
**Usage:**
631631

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/mattn/go-isatty v0.0.20
2424
github.com/moby/buildkit v0.26.2
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251126163841-f8e137ded5a4
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127153135-87311553a421
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.10.1
2929
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
462462
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
463463
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
465-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251126163841-f8e137ded5a4 h1:6/n7fmgdMmeWXcnXdIMWhfvNQWg7EFpzP/roBAPItR4=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251126163841-f8e137ded5a4/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o=
465+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127153135-87311553a421 h1:dh86GHLzpn8fTzjQ5TlKoN9OZBgSw0H4LX61v/2LnRw=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251127153135-87311553a421/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o=
467467
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
468468
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
469469
github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g=

internal/namespaces/container/v1beta1/container_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,11 +1485,11 @@ func containerDomainDelete() *core.Command {
14851485
func containerTokenCreate() *core.Command {
14861486
return &core.Command{
14871487
Short: `Create a new revocable token`,
1488-
Long: `Create a new revocable token.`,
1488+
Long: `Deprecated in favor of IAM authentication.`,
14891489
Namespace: "container",
14901490
Resource: "token",
14911491
Verb: "create",
1492-
// Deprecated: false,
1492+
// Deprecated: true,
14931493
ArgsType: reflect.TypeOf(container.CreateTokenRequest{}),
14941494
ArgSpecs: core.ArgSpecs{
14951495
{

internal/namespaces/function/v1beta1/function_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,11 +1537,11 @@ func functionDomainDelete() *core.Command {
15371537
func functionTokenCreate() *core.Command {
15381538
return &core.Command{
15391539
Short: `Create a new revocable token`,
1540-
Long: `Create a new revocable token.`,
1540+
Long: `Deprecated in favor of IAM authentication.`,
15411541
Namespace: "function",
15421542
Resource: "token",
15431543
Verb: "create",
1544-
// Deprecated: false,
1544+
// Deprecated: true,
15451545
ArgsType: reflect.TypeOf(function.CreateTokenRequest{}),
15461546
ArgSpecs: core.ArgSpecs{
15471547
{

0 commit comments

Comments
 (0)