k8s: add support for configuring the gRPC server address (#84006)

* k8s: add support for configuring the gRPC server address
This commit is contained in:
Georges Chaudy
2024-03-11 10:23:03 +01:00
committed by GitHub
parent 4d7220dbdf
commit 15e358e3b9
2 changed files with 9 additions and 2 deletions

View File

@@ -261,8 +261,7 @@ func (s *service) start(ctx context.Context) error {
case grafanaapiserveroptions.StorageTypeUnifiedGrpc:
// Create a connection to the gRPC server
// TODO: support configuring the gRPC server address
conn, err := grpc.Dial("localhost:10000", grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.Dial(o.StorageOptions.Address, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return err
}