Skip to content

feat(http-add-on): allow setting extra environment variables#762

Closed
ilia-medvedev wants to merge 1 commit into
kedacore:mainfrom
codefresh-io:feat/http-addon-add-extraenv
Closed

feat(http-add-on): allow setting extra environment variables#762
ilia-medvedev wants to merge 1 commit into
kedacore:mainfrom
codefresh-io:feat/http-addon-add-extraenv

Conversation

@ilia-medvedev

@ilia-medvedev ilia-medvedev commented Jun 16, 2025

Copy link
Copy Markdown

Allow setting custom environment variables for http-add-on components

Closes #761

Checklist

  • I have verified that my change is according to the deprecations & breaking changes policy
  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • README is updated with new configuration values (if applicable) learn more
  • A PR is opened to update KEDA core (repo) (if applicable, ie. when deployment manifests are modified)

Fixes #

@ilia-medvedev ilia-medvedev requested a review from a team as a code owner June 16, 2025 10:23
@matthijswolters-rl

matthijswolters-rl commented Jul 16, 2025

Copy link
Copy Markdown

Is there an ETA for merging this PR? I really want to set KEDA_HTTP_PROXY_TLS_SKIP_VERIFY but there is no value to do so. If this PR is merged at least I can set this env var.

Thanks in advance

EDIT: I just saw that the env var that I mentioned has not been included in a release of the http-add-on yet, and I assume it will be added when the release will be done

@wozniakjan wozniakjan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a great addition, thank you!

can you please just make it follow the convention set by KEDA as implemented in #245. The extra args are configured on KEDA through key value map, e.g.

extraArgs:
  interceptor:
    arg1: val-for-arg1
    arg2: "val for arg 2 with spaces"

@saez0pub

saez0pub commented Aug 29, 2025

Copy link
Copy Markdown

The PR #245 is for startup arguments (extra args), this pr is for extra environment variables (as https://github.com/kedacore/charts/blob/main/keda/templates/manager/deployment.yaml#L173)

env:
  - name: KEDA_FOO
    value: bar

Without this PR, we can't activate metrics or tracing.

robinderooij-rl added a commit to RosemanLabs/keda-charts that referenced this pull request Sep 10, 2025
The http-add-on chart did not have the ability yet to add custom extra
env variables to the deployments. This implements it according to the
standard set in the PR implementing the extra container ags,
using an object instead of a list of objects. (See for this PR:
kedacore#245)

A previous PR was already made some time ago but it did not adhere to
the requested convention: kedacore#762

This PR tries to solve that issue.
robinderooij-rl added a commit to RosemanLabs/keda-charts that referenced this pull request Sep 10, 2025
The http-add-on chart did not have the ability yet to add custom extra
env variables to the deployments. This implements it according to the
standard set in the PR implementing the extra container ags,
using an object instead of a list of objects. (See for this PR:
kedacore#245)

A previous PR was already made some time ago but it did not adhere to
the requested convention: kedacore#762

This PR tries to solve that issue.

Signed-off-by: Robin de Rooij <[email protected]>
@robinderooij-rl

Copy link
Copy Markdown
Contributor

Just for reference, I implemented it in the way @wozniakjan mentioned in #777

robinderooij-rl added a commit to RosemanLabs/keda-charts that referenced this pull request Sep 30, 2025
The http-add-on chart did not have the ability yet to add custom extra
env variables to the deployments. This implements it according to the
standard set in the PR implementing the extra container ags,
using an object instead of a list of objects. (See for this PR:
kedacore#245)

A previous PR was already made some time ago but it did not adhere to
the requested convention: kedacore#762

This PR tries to solve that issue.

Signed-off-by: Robin de Rooij <[email protected]>
wozniakjan added a commit that referenced this pull request Oct 6, 2025
* Add ability to add extra ENV vars to containers

The http-add-on chart did not have the ability yet to add custom extra
env variables to the deployments. This implements it according to the
standard set in the PR implementing the extra container ags,
using an object instead of a list of objects. (See for this PR:
#245)

A previous PR was already made some time ago but it did not adhere to
the requested convention: #762

This PR tries to solve that issue.

Signed-off-by: Robin de Rooij <[email protected]>

* Allow Keda to request SA tokens (#728)

* Allow Keda to request SA tokens

Signed-off-by: Bojan Zelic <[email protected]>

* Allow Keda to request SA tokens

Signed-off-by: Bojan Zelic <[email protected]>

* Allow Keda to request SA tokens

Signed-off-by: Bojan Zelic <[email protected]>

---------

Signed-off-by: Bojan Zelic <[email protected]>
Signed-off-by: Robin de Rooij <[email protected]>

* Move global extraEnvs object to their components

Signed-off-by: Robin de Rooij <[email protected]>

* http-add-on: migrate v1.Endpoints to discoveryv1.EndpointSlices (#779)

Signed-off-by: Jan Wozniak <[email protected]>
Signed-off-by: Robin de Rooij <[email protected]>

* release http-add-on v0.11.0 (#780)

Signed-off-by: Jan Wozniak <[email protected]>
Signed-off-by: Robin de Rooij <[email protected]>

* Add to README

Signed-off-by: Robin de Rooij <[email protected]>

---------

Signed-off-by: Robin de Rooij <[email protected]>
Signed-off-by: Bojan Zelic <[email protected]>
Signed-off-by: Jan Wozniak <[email protected]>
Co-authored-by: Bojan Zelic <[email protected]>
Co-authored-by: Jan Wozniak <[email protected]>
@wozniakjan

Copy link
Copy Markdown
Member

hey @robinderooij-rl, it seems like the PR has merge conflicts and is unable to merge as a result, can you please rebase on latest main? thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow setting custom extra environment variables in http-add-on components

5 participants