Skip to content

Commit

Permalink
feat: add health override (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Lindamood authored Jan 19, 2024
1 parent b3f87d4 commit dc482fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/gitdb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.31
version: 0.1.32

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 7 additions & 1 deletion charts/gitdb/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- name: DATA_DIRECTORY
value: {{ .Values.gitdb.dataDirectory | quote }}
{{- end }}
# JWT
# JWT
{{- if .Values.jwt.privateKey }}
- name: GITDB_JWT_PRIVATE_KEY
value: {{ .Values.jwt.privateKey | quote }}
Expand Down Expand Up @@ -77,14 +77,20 @@ spec:
- name: http
containerPort: 8080
protocol: TCP
{{- if $.Values.health }}
{{- toYaml $.Values.health | nindent 10 }}
{{- else }}
livenessProbe:
initialDelaySeconds: 60
httpGet:
path: /health
port: http
readinessProbe:
initialDelaySeconds: 60
httpGet:
path: /health
port: http
{{- end }}
{{- if .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
1 change: 1 addition & 0 deletions charts/gitdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ serviceAccount:
name: ""

podAnnotations: {}
health: {}

git:
secretName:
Expand Down

0 comments on commit dc482fd

Please sign in to comment.