File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ podAntiAffinityPreset:
2222
2323# registry replicas
2424replicas : 1
25+ # registry storage redirect
26+ redirect : false
2527
2628concurrencyPolicy : " Replace"
2729
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ func main() {
3939 os .Setenv ("REGISTRY_STORAGE_S3_ACCESSKEY" , os .Getenv (storageAccesskeyEnvVar ))
4040 os .Setenv ("REGISTRY_STORAGE_S3_SECRETKEY" , os .Getenv (storageSecretkeyEnvVar ))
4141 os .Setenv ("REGISTRY_STORAGE_S3_BUCKET" , os .Getenv (storageBucketEnvVar ))
42- os .Setenv ("REGISTRY_STORAGE_S3_ROOTDIRECTORY" , "/registry" )
4342
4443 if os .Getenv (storageLookupEnvVar ) == "path" {
4544 os .Setenv ("REGISTRY_STORAGE_S3_FORCEPATHSTYLE" , "true" )
@@ -50,6 +49,13 @@ func main() {
5049 } else {
5150 os .Setenv ("REGISTRY_STORAGE_REDIRECT_DISABLE" , "true" )
5251 }
52+ // set default env
53+ os .Setenv ("REGISTRY_STORAGE_S3_V4AUTH" , "true" )
54+ os .Setenv ("REGISTRY_STORAGE_S3_SECURE" , "false" )
55+ os .Setenv ("REGISTRY_STORAGE_S3_SKIPVERIFY" , "true" )
56+ os .Setenv ("REGISTRY_STORAGE_DELETE_ENABLED" , "true" )
57+ os .Setenv ("REGISTRY_VALIDATION_DISABLED" , "true" )
58+ os .Setenv ("REGISTRY_STORAGE_S3_ROOTDIRECTORY" , "/registry" )
5359
5460 // run /bin/init_registry
5561 os .Setenv ("REGISTRY_AUTH" , "htpasswd" )
You can’t perform that action at this time.
0 commit comments