Merge pull request #9492 from owncloud/ignore-address-for-kubernetes-registry

ignore addresses for kubernetes registry
This commit is contained in:
Jörn Friedrich Dreyer authored and GitHub committed 2024-07-30 16:53:13 +02:00
commit d839bfb5a3
2 files changed
+6 -3

No files matched your search

@@ -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
+1 -3
View File
@@ -70,9 +70,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(