Replies: 1 comment 1 reply
-
@ulric37, you can disable hooks in the following way. In response to the hook being triggered with if [ "$CUSTOM_LOGGING_FLOW_HOOK_ENABLED" == "true" ]; then
cat <<EOF
{
"configVersion":"v1",
"kubernetes": [
{
"name": "Monitor the logging operator flow resources modifications",
"apiVersion": "logging.banzaicloud.io/v1beta1",
"kind": "flow",
"executeHookOnEvent": [
"Added",
"Modified"
],
"executeHookOnSynchronization": false
}
]
}
EOF
else
cat <<EOF
{
"configVersion":"v1",
"settings": {
"executionMinInterval": "1s",
"executionBurst": 1
}
}
EOF
fi
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'd like to use an environment variable to register a bash hook or not.
The idea is to use the same shell operator, on various environments, most hooks are common but some must be disabled in some contexts.
How can it be achieved ?
Thank you for your help !
Beta Was this translation helpful? Give feedback.
All reactions