Skip to content
Discussion options

You must be logged in to vote

Hi @chabala! The expression given in retryStrategy.expression is evaluated using expr: https://expr-lang.org/docs/language-definition

expr evaluates lastRetry.message.contains(...) by checking for a contains() function on the string type, which doesn't exist. As you discovered, the contains operator will do what you want, and you could simplify it a bit using the matches operator:

retryStrategy:
    limit: "10"
    expression: lastRetry.message matches 'imminent node shutdown|pod deleted'

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@chabala
Comment options

@MasonM
Comment options

MasonM Jul 15, 2025
Collaborator

Answer selected by chabala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants