Pass context.Context to the store implementations 12/142712/2
authorFiete Ostkamp <fiete.ostkamp@telekom.de>
Tue, 9 Dec 2025 07:36:08 +0000 (08:36 +0100)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Tue, 9 Dec 2025 08:42:09 +0000 (09:42 +0100)
commit5e034137da34c9feafaac5e251abb413589f69fe
tree0e26da62ff0477f9da0ad9a436b1bd325167f2a3
parent083ee456e9d9428afaa616cf975b363302adf9d0
Pass context.Context to the store implementations

- this service defines a Store interface with implementations
  for mongo and consul
- enhance the methods of this interface to require
  a context.Context parameter
- this is the first step in being able to pass the (request) context
  from the handler to the mongo driver
- the context propagation is needed for the tracing instrumenations
  to pick up the overall trace context
- bump snapshot version to 0.12.0-SNAPSHOT

Issue-ID: MULTICLOUD-1537
Change-Id: Ibfcdbab6b46bc18a425a8abb3835c35371044bbc
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
16 files changed:
deployments/build.sh
src/k8splugin/internal/app/hook.go
src/k8splugin/internal/app/instance.go
src/k8splugin/internal/app/subscription.go
src/k8splugin/internal/connection/connection.go
src/k8splugin/internal/db/consul.go
src/k8splugin/internal/db/consul_test.go
src/k8splugin/internal/db/mongo.go
src/k8splugin/internal/db/mongo_test.go
src/k8splugin/internal/db/store.go
src/k8splugin/internal/db/testing.go
src/k8splugin/internal/healthcheck/healthcheck.go
src/k8splugin/internal/namegenerator/namegenerator.go
src/k8splugin/internal/rb/config_template.go
src/k8splugin/internal/rb/definition.go
src/k8splugin/internal/rb/profile.go