Skip to content

Commit

Permalink
feat: add initialDelaySeconds and some rendor-logic (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasehlert authored Dec 12, 2024
1 parent c00430f commit 980e0ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/tibiadata-api-go/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://avatars.githubusercontent.com/u/45961610
maintainers:
- name: TibiaData
url: https://tibiadata.com
- name: Tobias Lindberg
- name: tobiasehlert
url: https://tobiasehlert.github.io
email: [email protected]
sources:
Expand All @@ -24,7 +24,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: 1.2.8
version: 1.2.9

# 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
6 changes: 6 additions & 0 deletions charts/tibiadata-api-go/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ spec:
{{- include "tibiadata-api-go.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- if or .Values.configMap.create .Values.podAnnotations }}
annotations:
{{- if .Values.configMap.create }}
checksum/cm: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- end }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "tibiadata-api-go.selectorLabels" . | nindent 8 }}
spec:
Expand All @@ -44,10 +46,12 @@ spec:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
readinessProbe:
httpGet:
path: /readyz
port: 8080
initialDelaySeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
Expand All @@ -70,9 +74,11 @@ spec:
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 }}
{{- end }}
{{- if .Values.configMap.create }}
envFrom:
- configMapRef:
name: {{ include "tibiadata-api-go.fullname" . }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 980e0ec

Please sign in to comment.