Skip to content

Commit

Permalink
fix: support custom http context
Browse files Browse the repository at this point in the history
Resolves #34
  • Loading branch information
eshepelyuk committed Apr 28, 2021
1 parent 7281196 commit f0f879f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions templates/_utils.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@ ssl.keystore.password={{ .keystore.password }}
{{- end -}}
{{- end -}}
{{- end -}}

{{- define "cmak.healthUi" -}}
{{ $httpCtx := "" }}
{{- range .Values.ui.extraArgs -}}
{{- if hasPrefix "-Dplay.http.context=" . -}}
{{- $httpCtx = trimPrefix "-Dplay.http.context=" . -}}
{{- end -}}
{{- end -}}
{{ $httpCtx }}/api/health
{{- end -}}
4 changes: 2 additions & 2 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ spec:
{{- end }}
readinessProbe:
httpGet:
path: /api/health
path: {{ include "cmak.healthUi" . }}
port: http
failureThreshold: 7
initialDelaySeconds: 15
timeoutSeconds: 15
periodSeconds: 15
livenessProbe:
httpGet:
path: /api/health
path: {{ include "cmak.healthUi" . }}
port: http
failureThreshold: 7
initialDelaySeconds: 45
Expand Down

0 comments on commit f0f879f

Please sign in to comment.