Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI install synthetic environment variable duplicate in operator pod container #5349

Closed
gansheer opened this issue Apr 10, 2024 · 1 comment
Assignees
Labels
area/installation Installation and Topology kind/bug Something isn't working

Comments

@gansheer
Copy link
Contributor

What happened?

Installing the operator with the CLI and the parameter --operator-env-vars=CAMEL_K_SYNTHETIC_INTEGRATIONS=true does not always works to activate the synthetic integration support. This is because the default value (false) is still present in the pod's container spec.

Steps to reproduce

Install the operator:

kamel install --operator-id=camel-k-synthetic-env --operator-env-vars=CAMEL_K_SYNTHETIC_INTEGRATIONS=true

Check the operator pod:

spec:
  containers:
  - args:
...
    - name: CAMEL_K_SYNTHETIC_INTEGRATIONS
      value: "false"
    - name: CAMEL_K_SYNTHETIC_INTEGRATIONS
      value: "true"
    - name: KAMEL_OPERATOR_ID
      value: camel-k-synthetic-env
...

Relevant log output

No response

Camel K version

main branch

@squakez
Copy link
Contributor

squakez commented Apr 10, 2024

Thanks. Then, the problem is indeed in the way we use --operator-env-vars as I guess that any generic env var is added twice if reported twice.

@squakez squakez added the area/installation Installation and Topology label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/installation Installation and Topology kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants