Skip to content

Commit e5159a4

Browse files
committed
Add date when deprecated ServiceAccountEmail will be removed
1 parent 4d4e320 commit e5159a4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
type credentialType string
1515

1616
type Credentials struct {
17-
STACKIT_SERVICE_ACCOUNT_EMAIL string // Deprecated: ServiceAccountEmail is not required anymore.
17+
STACKIT_SERVICE_ACCOUNT_EMAIL string // Deprecated: ServiceAccountEmail is not required and will be removed after 12th June 2025.
1818
STACKIT_SERVICE_ACCOUNT_TOKEN string
1919
STACKIT_SERVICE_ACCOUNT_KEY_PATH string
2020
STACKIT_PRIVATE_KEY_PATH string

core/clients/token_flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type TokenFlow struct {
1919

2020
// TokenFlowConfig is the flow config
2121
type TokenFlowConfig struct {
22-
// Deprecated: ServiceAccountEmail is not required anymore.
22+
// Deprecated: ServiceAccountEmail is not required and will be removed after 12th June 2025.
2323
ServiceAccountEmail string
2424
ServiceAccountToken string
2525
// Deprecated: retry options were removed to reduce complexity of the client. If this functionality is needed, you can provide your own custom HTTP client.

core/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ type Configuration struct {
8181
UserAgent string `json:"userAgent,omitempty"`
8282
Debug bool `json:"debug,omitempty"`
8383
NoAuth bool `json:"noAuth,omitempty"`
84-
ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` // Deprecated: ServiceAccountEmail is not required anymore.
84+
ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` // Deprecated: ServiceAccountEmail is not required and will be removed after 12th June 2025.
8585
Token string `json:"token,omitempty"`
8686
ServiceAccountKey string `json:"serviceAccountKey,omitempty"`
8787
PrivateKey string `json:"privateKey,omitempty"`
@@ -177,7 +177,7 @@ func WithTokenEndpoint(url string) ConfigurationOption {
177177

178178
// WithServiceAccountEmail returns a ConfigurationOption that sets the service account email
179179
//
180-
// Deprecated: WithServiceAccountEmail is not required anymore.
180+
// Deprecated: WithServiceAccountEmail is not required and will be removed after 12th June 2025.
181181
func WithServiceAccountEmail(_ string) ConfigurationOption {
182182
return func(_ *Configuration) error {
183183
return nil

0 commit comments

Comments
 (0)