Skip to content

Commit a135d2a

Browse files
committed
fix(server): specified deprecation period
1 parent 04f4341 commit a135d2a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/cmd/server/service-account/attach/attach.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
)
2222

2323
const (
24-
serviceAccMailArg = "SERVICE_ACCOUNT_EMAIL"
24+
serviceAccMailArg = "SERVICE_ACCOUNT_EMAIL" // Deprecated: positional argument is not used anymore, use the flag instead, will be removed 2026-12-03
2525

2626
serverIdFlag = "server-id"
2727

@@ -39,7 +39,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
3939
Use: fmt.Sprintf("attach"),
4040
Short: "Attach a service account to a server",
4141
Long: "Attach a service account to a server",
42-
Args: args.SingleOptionalArg(serviceAccMailArg, nil), // Deprecated: positional argument is not used anymore, use the flag instead, will be removed 2027-01
42+
Args: args.SingleOptionalArg(serviceAccMailArg, nil), // Deprecated: positional argument is not used anymore, use the flag instead, will be removed 2026-12-03
4343
Example: examples.Build(
4444
examples.NewExample(
4545
`Attach a service account with mail "xxx@sa.stackit.cloud" to a server with ID "yyy"`,

internal/cmd/server/service-account/detach/detach.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
)
2222

2323
const (
24-
serviceAccMailArg = "SERVICE_ACCOUNT_EMAIL"
24+
serviceAccMailArg = "SERVICE_ACCOUNT_EMAIL" // Deprecated: positional argument is not used anymore, use the flag instead, will be removed 2026-12-03
2525

2626
serverIdFlag = "server-id"
2727

@@ -39,7 +39,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
3939
Use: fmt.Sprintf("detach"),
4040
Short: "Detach a service account from a server",
4141
Long: "Detach a service account from a server",
42-
Args: args.SingleOptionalArg(serviceAccMailArg, nil), // Deprecated: positional argument is not used anymore, use the flag instead, will be removed 2027-01
42+
Args: args.SingleOptionalArg(serviceAccMailArg, nil), // Deprecated: positional argument is not used anymore, use the flag instead, will be removed 2026-12-03
4343
Example: examples.Build(
4444
examples.NewExample(
4545
`Detach a service account with mail "xxx@sa.stackit.cloud" from a server "yyy"`,

0 commit comments

Comments
 (0)