From 80ecb8e8f7cd1b6cf87f4c87b519708ef70d77d4 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 26 Apr 2024 09:20:13 +0200 Subject: [PATCH] fix(datastore): client wasn't correctly setting header --- deploy/charts/burrito/templates/config.yaml | 2 +- internal/datastore/client/client.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/charts/burrito/templates/config.yaml b/deploy/charts/burrito/templates/config.yaml index 1a2e555e..461b083a 100644 --- a/deploy/charts/burrito/templates/config.yaml +++ b/deploy/charts/burrito/templates/config.yaml @@ -21,7 +21,7 @@ Datastore Authorized Service Accounts {{- $datastoreAuthorizedServiceAccounts = append $datastoreAuthorizedServiceAccounts $serviceAccount }} {{- end }} {{- end }} -{{- $controller := printf "%s/%s" .Release.Namespace "burrito-controller" }} +{{- $controller := printf "%s/%s" .Release.Namespace "burrito-controllers" }} {{- $datastoreAuthorizedServiceAccounts = append $datastoreAuthorizedServiceAccounts $controller }} {{- $server := printf "%s/%s" .Release.Namespace "burrito-server" }} {{- $datastoreAuthorizedServiceAccounts = append $datastoreAuthorizedServiceAccounts $server }} diff --git a/internal/datastore/client/client.go b/internal/datastore/client/client.go index f885dead..2ec09960 100644 --- a/internal/datastore/client/client.go +++ b/internal/datastore/client/client.go @@ -121,6 +121,7 @@ func (c *DefaultClient) PutPlan(namespace string, layer string, run string, atte http.MethodPut, strings.NewReader(string(body)), ) + req.Header.Set("Content-Type", "application/json") if err != nil { return err } @@ -201,6 +202,7 @@ func (c *DefaultClient) PutLogs(namespace string, layer string, run string, atte http.MethodPut, strings.NewReader(string(body)), ) + req.Header.Set("Content-Type", "application/json") if err != nil { return err }