Skip to content

Commit

Permalink
add exec test as a postStart hook
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb committed Nov 2, 2023
1 parent 675099e commit ada8036
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/kuttl/test-lifecycle-hook/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ spec:
- name: lifecycle-processor
image: quay.io/psav/clowder-hello
lifecycle:
postStart:
exec:
command:
- ./clowder-hello
- boo
preStop:
httpGet:
path: /healthz
Expand Down
5 changes: 5 additions & 0 deletions tests/kuttl/test-lifecycle-hook/01-pods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ spec:
# - "/bin/sh"
# - "-c"
# - echo "$(date -Iseconds) ...MESSAGE FROM THE POSTSTART HOOK..." > /proc/1/fd/1
postStart:
exec:
command:
- ./clowder-hello
- boo
preStop:
httpGet:
port: 8000
Expand Down

0 comments on commit ada8036

Please sign in to comment.