Skip to content

Add helm value extraEnvFromSecrets to metrics exporter in order to re…#133

Open
dpailer wants to merge 1 commit into
valkey-io:mainfrom
dpailer:main
Open

Add helm value extraEnvFromSecrets to metrics exporter in order to re…#133
dpailer wants to merge 1 commit into
valkey-io:mainfrom
dpailer:main

Conversation

@dpailer

@dpailer dpailer commented Jan 29, 2026

Copy link
Copy Markdown

…ad the contents of a secret as environment variable in metrics exporter container

e.g. if the secret contains the contents like

REDIS_USER: default
REDIS_PASSWORD: asdfgh

these will be available in a secure way for the redis exporter

…ad the contents of a secret as environment variable in metrics exporter container

Signed-off-by: dpailer <dirk.pailer@gmail.com>
@urbaman

urbaman commented Jan 30, 2026

Copy link
Copy Markdown

Need this!

@dpailer

dpailer commented Feb 3, 2026

Copy link
Copy Markdown
Author

Hi @sgissi and @mk-raven

can you take a look to this PR please and tell me if I need to improve anything?

Currently I am maintaining a fork of the helm-chart with the shown minor additions and this would definitely reduce my maintenance overhead :)

BR

@jessebye

jessebye commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

@dpailer @urbaman it looks like this is already supported?

# Additional secrets to mount for metrics exporter

disregard - although you can specify extra secrets for the exporter, you can't actually use them since there's no way to reference them in the extraEnvs.

@sgissi

sgissi commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

@dpailer Thanks for the PR, other than proving the user/password to Exporter, is there another use case? The authentication and TLS issues are being worked on other PRs.

@dpailer

dpailer commented Mar 31, 2026

Copy link
Copy Markdown
Author

Hi @sgissi
thanks for the feedback
you could pass all kinds of environment variables which are useful for the exporter via secret, not only the user/password. makes it easier to manage the configuration of the exporter e.g. via ExternalSecrets.

@dmaes

dmaes commented Jun 11, 2026

Copy link
Copy Markdown

@dpailer why not just a generic {{- with ... }} envFrom: {{- toYaml . | nindent x }} ... ? That way, it supports all possible envFrom values, not just secrets.

(Sorry for low effort code block, typed on mobile)

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.

5 participants