mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-12 23:29:57 -06:00
ignore addresses for kubernetes registry
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
Bugfix: Ignore address for kubernetes registry
|
||||
|
||||
We no longer pass an address to the go micro kubernetes registry implementation. This causes the implementation to autodetect the namespace and not hardcode it to `default`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9490
|
||||
@@ -68,9 +68,7 @@ func GetRegistry(opts ...Option) mRegistry.Registry {
|
||||
cfg.DisableCache = true // no cache needed for in-memory registry
|
||||
case "kubernetes":
|
||||
fmt.Println("Attention: kubernetes registry is deprecated, use nats-js-kv instead")
|
||||
_reg = kubernetesr.NewRegistry(
|
||||
mRegistry.Addrs(cfg.Addresses...),
|
||||
)
|
||||
_reg = kubernetesr.NewRegistry()
|
||||
case "nats":
|
||||
fmt.Println("Attention: nats registry is deprecated, use nats-js-kv instead")
|
||||
_reg = natsr.NewRegistry(
|
||||
|
||||
Reference in New Issue
Block a user