We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b81579 commit 4188acbCopy full SHA for 4188acb
1 file changed
tests/templates/kuttl/opa-authorization/50-assert.yaml
@@ -3,5 +3,7 @@ apiVersion: kuttl.dev/v1beta1
3
kind: TestAssert
4
timeout: 300
5
commands:
6
- # Check that a graceful shutdown was triggered (it needs OPA permissions)
7
- - script: 'kubectl -n $NAMESPACE logs trino-worker-default-0 | grep -P "io.trino.server.NodeStateManager[\h]*Shutdown requested"'
+ # Check that a graceful shutdown was triggered (it needs OPA permissions).
+ # Strip ANSI colour codes first: on OpenShift the container runtime sets TERM=xterm, so Trino
8
+ # colourises its logs and the escape sequences would otherwise break the grep pattern below.
9
+ - script: 'kubectl -n $NAMESPACE logs trino-worker-default-0 | sed "s/\x1b\[[0-9;]*m//g" | grep -P "io.trino.server.NodeStateManager[\h]*Shutdown requested"'
0 commit comments