Skip to content

Commit 980e0ec

Browse files
authored
feat: add initialDelaySeconds and some rendor-logic (#28)
1 parent c00430f commit 980e0ec

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

charts/tibiadata-api-go/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ icon: https://avatars.githubusercontent.com/u/45961610
66
maintainers:
77
- name: TibiaData
88
url: https://tibiadata.com
9-
- name: Tobias Lindberg
9+
- name: tobiasehlert
1010
url: https://tobiasehlert.github.io
1111
1212
sources:
@@ -24,7 +24,7 @@ type: application
2424
# This is the chart version. This version number should be incremented each time you make changes
2525
# to the chart and its templates, including the app version.
2626
# Versions are expected to follow Semantic Versioning (https://semver.org/)
27-
version: 1.2.8
27+
version: 1.2.9
2828

2929
# This is the version number of the application being deployed. This version number should be
3030
# incremented each time you make changes to the application. Versions are not expected to

charts/tibiadata-api-go/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ spec:
1313
{{- include "tibiadata-api-go.selectorLabels" . | nindent 6 }}
1414
template:
1515
metadata:
16+
{{- if or .Values.configMap.create .Values.podAnnotations }}
1617
annotations:
1718
{{- if .Values.configMap.create }}
1819
checksum/cm: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
1920
{{- end }}
2021
{{- with .Values.podAnnotations }}
2122
{{- toYaml . | nindent 8 }}
2223
{{- end }}
24+
{{- end }}
2325
labels:
2426
{{- include "tibiadata-api-go.selectorLabels" . | nindent 8 }}
2527
spec:
@@ -44,10 +46,12 @@ spec:
4446
httpGet:
4547
path: /healthz
4648
port: 8080
49+
initialDelaySeconds: 5
4750
readinessProbe:
4851
httpGet:
4952
path: /readyz
5053
port: 8080
54+
initialDelaySeconds: 5
5155
resources:
5256
{{- toYaml .Values.resources | nindent 12 }}
5357
env:
@@ -70,9 +74,11 @@ spec:
7074
{{- if .Values.env }}
7175
{{- toYaml .Values.env | nindent 12 }}
7276
{{- end }}
77+
{{- if .Values.configMap.create }}
7378
envFrom:
7479
- configMapRef:
7580
name: {{ include "tibiadata-api-go.fullname" . }}
81+
{{- end }}
7682
{{- with .Values.nodeSelector }}
7783
nodeSelector:
7884
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)