Skip to content

Commit cd8e400

Browse files
committed
chore(registry): add default env
1 parent 57e31f1 commit cd8e400

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

charts/registry/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ podAntiAffinityPreset:
2222

2323
# registry replicas
2424
replicas: 1
25+
# registry storage redirect
26+
redirect: false
2527

2628
concurrencyPolicy: "Replace"
2729

main.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)