Skip to content

Commit 43f041d

Browse files
Simon Emmsroboquat
authored andcommitted
[installer]: ensure the incluster minio region is "local"
1 parent 398c331 commit 43f041d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

installer/example-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jaegerOperator:
1414
inCluster: true
1515
kind: Full
1616
metadata:
17-
region: "foobar"
17+
region: "local"
1818
objectStorage:
1919
inCluster: true
2020
observability:

installer/pkg/common/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func StorageConfig(context *RenderContext) storageconfig.StorageConfig {
5050
AccessKeyID: context.Values.StorageAccessKey,
5151
SecretAccessKey: context.Values.StorageSecretKey,
5252
Secure: false,
53-
Region: context.Config.Metadata.Region,
53+
Region: "local", // Local Minio requires this value - workspace allocation fails if not set to this
5454
ParallelUpload: 6,
5555
},
5656
}

installer/pkg/config/v1/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func (v version) Defaults(in interface{}) error {
4343
cfg.Certificate.Kind = ObjectRefSecret
4444
cfg.Certificate.Name = "https-certificates"
4545
cfg.Database.InCluster = pointer.Bool(true)
46+
cfg.Metadata.Region = "local"
4647
cfg.ObjectStorage.InCluster = pointer.Bool(true)
4748
cfg.ContainerRegistry.InCluster = pointer.Bool(true)
4849
cfg.Jaeger.InCluster = pointer.Bool(true)

0 commit comments

Comments
 (0)