Skip to content

Commit

Permalink
Respect supergraph path for kubernetes deployment probes (#1788)
Browse files Browse the repository at this point in the history
- Test with `helm template router-test helm/chart/router`
- Retains probe path of `/?query={__typename}`
- Test with `helm template router-test helm/chart/router --set
router.configuration.supergraph.path=/graphql`
- Utilises probe path of `/graphql?query={__typename}`
- Resolves #1787

Co-authored-by: Gary Pennington <[email protected]>
  • Loading branch information
damienpontifex and garypen authored Sep 15, 2022
1 parent 40b149a commit 7fbff7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,14 @@ By [@USERNAME](https://github.com/USERNAME) in https://github.com/apollographql/
## ❗ BREAKING ❗
## 🚀 Features
## 🐛 Fixes

### Respect supergraph path for kubernetes deployment probes (#1787)

For cases where you configured the `supergraph.path` for the router when using the helm chart, the liveness
and readiness probes continued to use the default path of `/` and so the start failed.

By @damienpontifex in #1788


## 🛠 Maintenance
## 📚 Documentation
4 changes: 2 additions & 2 deletions helm/chart/router/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ spec:
httpHeaders:
- name: Content-Type
value: application/json
path: "/?query={__typename}"
path: {{ .Values.router.configuration.supergraph.path | default "/" }}?query={__typename}
port: {{ .Values.containerPorts.http }}
readinessProbe:
httpGet:
httpHeaders:
- name: Content-Type
value: application/json
path: "/?query={__typename}"
path: {{ .Values.router.configuration.supergraph.path | default "/" }}?query={__typename}
port: {{ .Values.containerPorts.http }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down

0 comments on commit 7fbff7e

Please sign in to comment.