GitHub user dosubot[bot] added a comment to the discussion: Using env vars in 
the extraConfigs / import_datasources.yaml part of the helm chart

<!-- Greeting -->
Hello @cyber-cricket! I'm [Dosu](https://dosu.dev), here to help you with bugs, 
answer questions, and guide you in becoming a contributor. I'll be waiting 
alongside you for a human maintainer to jump in!

<!-- Answer -->
I couldn't find specific documentation or examples in the Superset Helm chart 
repository that demonstrate using environment variables directly within the 
`import_datasources.yaml` file. However, the Helm chart does support the use of 
environment variables in general through the `extraEnv`, `extraEnvRaw`, and 
`extraSecretEnv` sections in the `values.yaml` file, which are used to set 
environment variables in the Superset pod's container 
<sup>[[1]](https://github.com/apache/superset/blob/master/helm/superset/values.yaml)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/helm/superset/templates/deployment.yaml)</sup>.

For dynamic configuration using environment variables, you might consider using 
a custom script or entrypoint that processes the `import_datasources.yaml` file 
before it is used by Superset. This script could replace placeholders in the 
YAML file with actual environment variable values from the container.

If you need to use environment variables in configuration files like 
`import_datasources.yaml`, you might need to preprocess these files with a 
script that substitutes environment variables before they are consumed by 
Superset. This approach isn't directly supported by the Helm chart but can be 
implemented as part of your deployment process.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/61586b05-1f95-4337-933e-ca73841d2127?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/61586b05-1f95-4337-933e-ca73841d2127?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/61586b05-1f95-4337-933e-ca73841d2127?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/61586b05-1f95-4337-933e-ca73841d2127?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/61586b05-1f95-4337-933e-ca73841d2127?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/61586b05-1f95-4337-933e-ca73841d2127?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/61586b05-1f95-4337-933e-ca73841d2127?feedback_type=other)</sup>


GitHub link: 
https://github.com/apache/superset/discussions/33379#discussioncomment-13053631

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to