Skip to content

Commit

Permalink
TT-11901: make provision for nil probes if healthcheck is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
olamilekan000 committed Jan 9, 2025
1 parent c0855a9 commit a503417
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion components/tyk-pump/templates/deployment-pmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,19 @@ spec:
scheme: "HTTP"
path: /{{ .Values.pump.healthCheckService.path }}
port: {{ .Values.pump.healthCheckService.port }}
{{- with (default nil .Values.pump.livenessProbe) }}
{{- toYaml . | nindent 10 }}
{{- end }}

readinessProbe:
httpGet:
scheme: "HTTP"
path: /{{ .Values.pump.healthCheckService.path }}
port: {{ .Values.pump.healthCheckService.port }}
{{- with (default nil .Values.pump.readinessProbe) }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}

env:
# Legacy support for Redis Cluster driver. Driver dropped in v3.0.0.
- name: REDIGOCLUSTER_SHARDCOUNT
Expand Down
2 changes: 1 addition & 1 deletion components/tyk-pump/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,4 @@ pump:
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 3
readinessProbe: {}
readinessProbe: {}

0 comments on commit a503417

Please sign in to comment.