Skip to content

Commit

Permalink
Merge pull request #106 from camptocamp/readinessProbe
Browse files Browse the repository at this point in the history
Fix startupProbe
  • Loading branch information
sbrunner authored Mar 28, 2023
2 parents e368e7f + 0119796 commit b520fba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
readinessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with $config.readinessProbe }}
{{- with $config.startupProbe }}
startupProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
15 changes: 3 additions & 12 deletions tests/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,22 +262,19 @@ spec:

livenessProbe:
httpGet:
path: /
path: /heals/liveness
port: http
readinessProbe:
httpGet:
path: /
path: /heals/readiness
port: http
initialDelaySeconds: 5
periodSeconds: 20
timeoutSeconds: 10
startupProbe:
httpGet:
path: /
path: /heals/startup
port: http
initialDelaySeconds: 5
periodSeconds: 20
timeoutSeconds: 10
volumes:
- name: my-volume
emptyDir: {}
Expand Down Expand Up @@ -384,9 +381,6 @@ spec:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 20
timeoutSeconds: 10
volumes:
- name: my-volume
emptyDir: {}
Expand Down Expand Up @@ -495,9 +489,6 @@ spec:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 20
timeoutSeconds: 10
volumes:
- name: my-volume
emptyDir: {}
Expand Down
6 changes: 3 additions & 3 deletions tests/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ services:
<<: *bb
livenessProbe:
httpGet:
path: /
path: /heals/liveness
port: http
readinessProbe:
httpGet:
path: /
path: /heals/readiness
port: http
initialDelaySeconds: 5
timeoutSeconds: 10
periodSeconds: 20
startupProbe:
httpGet:
path: /
path: /heals/startup
port: http
ports:
http:
Expand Down

0 comments on commit b520fba

Please sign in to comment.