Unable to set user defined environment variable in KC #7134
Unanswered
williamyeungforsure
asked this question in
Q&A
Replies: 1 comment
-
You can set environment variables either by setting the value directly or based on Secrets or ConfigMaps. You cannot set them based on the Downward API. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am trying to set the namespace as an environment variable in KafkaConnect, so that I could use it to format a string that would be used in the KafkaConnector's
spec.config
like this: "postgresql-ha-${NAMESPACE}"At first, I defined it inside KafkaConnect's
externalConfiguration.env
usingDownward API
like this:However, seems like Strimzi API does not support this fieldRef syntax. I got such error here:
Does anyone know there's a way to set a user defined environment variable in KafkaConnect? Or is there a way to get the namespace of the deployed KafkaConnector pod? Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions