You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/cmd/server/service-account/attach/attach.go
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,11 @@ import (
20
20
)
21
21
22
22
const (
23
-
serviceAccMailArg="SERVICE_ACCOUNT_EMAIL"
23
+
serviceAccMailArg="SERVICE_ACCOUNT_EMAIL"// Deprecated: positional argument is not used anymore, use the flag instead, will be removed after 2026-12-31
p.Warn("Using a positional argument for the service account email is deprecated and will be removed after 2026-12. Please use the '--%s' flag instead.\n", serviceAccFlag)
107
+
} else {
108
+
returnnil, fmt.Errorf(`service account must be specified by using either the --%s flag or (deprecated) as a positional argument`, serviceAccFlag)
Copy file name to clipboardExpand all lines: internal/cmd/server/service-account/detach/detach.go
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,11 @@ import (
20
20
)
21
21
22
22
const (
23
-
serviceAccMailArg="SERVICE_ACCOUNT_EMAIL"
23
+
serviceAccMailArg="SERVICE_ACCOUNT_EMAIL"// Deprecated: positional argument is not used anymore, use the flag instead, will be removed after 2026-12-31
p.Warn("Using a positional argument for the service account email is deprecated and will be removed after 2026-12-31. Please use the '--%s' flag instead.\n", serviceAccFlag)
107
+
} else {
108
+
returnnil, fmt.Errorf(`service account must be specified by using either the --%s flag or (deprecated) as a positional argument`, serviceAccFlag)
0 commit comments