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
Remove support for deprecated auto-login controller flags:
- --aws-autologin-for-ecr
- --gcp-autologin-for-gcr
- --azure-autologin-for-acr
These flags have been deprecated since v0.25.0 and users should
migrate to using the .spec.provider field in ImageRepository objects.
The following changes are made:
- Remove flag definitions and variables from main.go
- Remove DeprecatedLoginOpts field from ImageRepositoryReconciler
- Remove deprecated login options handling from registry options
- Clean up unused imports (errors, aws, azure, gcp packages)
- Clarify switch statement logic for provider auto-login
Breaking change: Auto-login flags no longer work and will cause
the controller to fail with "flag provided but not defined" error.
Users must update their ImageRepository objects to use .spec.provider.
Signed-off-by: cappyzawa <[email protected]>
gcIntervaluint16// max value is 65535 minutes (~ 45 days) which is well under the maximum time.Duration
98
94
concurrentint
99
-
awsAutoLoginbool
100
-
gcpAutoLoginbool
101
-
azureAutoLoginbool
102
95
aclOptions acl.Options
103
96
rateLimiterOptions helper.RateLimiterOptions
104
97
featureGates feathelper.FeatureGates
@@ -113,11 +106,6 @@ func main() {
113
106
flag.Uint16Var(&gcInterval, "gc-interval", 10, "The number of minutes to wait between garbage collections. 0 disables the garbage collector.")
114
107
flag.IntVar(&concurrent, "concurrent", 4, "The number of concurrent resource reconciles.")
115
108
116
-
// NOTE: Deprecated flags.
117
-
flag.BoolVar(&awsAutoLogin, "aws-autologin-for-ecr", false, "(AWS) Attempt to get credentials for images in Elastic Container Registry, when no secret is referenced")
118
-
flag.BoolVar(&gcpAutoLogin, "gcp-autologin-for-gcr", false, "(GCP) Attempt to get credentials for images in Google Container Registry, when no secret is referenced")
119
-
flag.BoolVar(&azureAutoLogin, "azure-autologin-for-acr", false, "(Azure) Attempt to get credentials for images in Azure Container Registry, when no secret is referenced")
120
-
121
109
clientOptions.BindFlags(flag.CommandLine)
122
110
logOptions.BindFlags(flag.CommandLine)
123
111
leaderElectionOptions.BindFlags(flag.CommandLine)
@@ -131,12 +119,6 @@ func main() {
131
119
132
120
logger.SetLogger(logger.NewLogger(logOptions))
133
121
134
-
ifawsAutoLogin||gcpAutoLogin||azureAutoLogin {
135
-
setupLog.Error(errors.New("use of deprecated flags"),
136
-
"autologin flags have been deprecated. These flags will be removed in a future release."+
137
-
" Please update the respective ImageRepository objects with .spec.provider field.")
0 commit comments