Skip to content

Commit

Permalink
fix(datastore): client wasn't correctly setting header
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-pad committed Apr 26, 2024
1 parent dd6f833 commit 80ecb8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/charts/burrito/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions internal/datastore/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 80ecb8e

Please sign in to comment.