-
Notifications
You must be signed in to change notification settings - Fork 166
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
Feature request: can be set environment variable from envFrom in k6 CR. #122
Comments
https://github.com/grafana/k6-operator/blob/main/api/v1alpha1/k6_types.go#L53-L65 K6 specs An example from my own test suites :
|
Ah, sure, but I think it would be better to be able to use envFrom if you want to handle multiple environment variables. |
I'm inclined to agree that |
How do we access the env variable in K6 file. Unable to access as __ENV.myVar |
@deepikaUKG This is a closed issue 🙂 Please consult official k6 docs and community forum regarding env vars in k6 scripts. If the problem persists, feel free to open a new forum topic or, if you're certain its a bug, open a bug report on Github. |
motivation
When executing k6 scripts, we need to handle sensitive information such as API Key in environment variables, but currently we cannot define environment variables in envFrom, so we are having trouble handling sensitive information.
By enabling envFrom to be used with k6 CR, secret information can be managed with secret resources, making it possible to handle secret information more securely.
The text was updated successfully, but these errors were encountered: