diff --git a/tests/kuttl/test-lifecycle-hook/01-assert.yaml b/tests/kuttl/test-lifecycle-hook/01-assert.yaml index 6be5b3f3c..3118e5e8b 100644 --- a/tests/kuttl/test-lifecycle-hook/01-assert.yaml +++ b/tests/kuttl/test-lifecycle-hook/01-assert.yaml @@ -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 diff --git a/tests/kuttl/test-lifecycle-hook/01-pods.yaml b/tests/kuttl/test-lifecycle-hook/01-pods.yaml index fe20efe4d..b43be4e59 100644 --- a/tests/kuttl/test-lifecycle-hook/01-pods.yaml +++ b/tests/kuttl/test-lifecycle-hook/01-pods.yaml @@ -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