Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Always add parseTime=true for mysql query string (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-memon committed Jun 20, 2023
1 parent ac3be71 commit 1333b6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/tests/production-external-mysql/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ spire-server:
password: ${DBPW}
host: mysql
port: 3306
options:
- parseTime: true
EOF

helm install mysql mysql --namespace "spire-server" --version "$VERSION_MYSQL" --repo "$HELM_REPO_MYSQL" \
Expand Down
5 changes: 2 additions & 3 deletions charts/spire/charts/spire-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ Create the name of the service account to use
{{- $lst = append $lst $entry }}
{{- end }}
{{- end }}
{{- if gt (len $lst) 0 }}
{{- printf "?%s" (join "&" $lst) }}
{{- end }}
{{- $lst = append $lst "parseTime=true" }}
{{- printf "?%s" (join "&" (uniq $lst)) }}
{{- end }}

{{- define "spire-server.config-postgresql-options" }}
Expand Down
2 changes: 0 additions & 2 deletions examples/external-mysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ spire-server:
host: mysql
port: 3306
username: spire
options:
- parseTime: true

0 comments on commit 1333b6a

Please sign in to comment.