ignore addresses for kubernetes registry

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-06-28 10:54:00 +02:00
parent 82f8be0962
commit 48f9e79ff4
2 changed files with 6 additions and 3 deletions

View File

@@ -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

View File

@@ -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(