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

Override configuration with environment variables if they exist #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 8, 2023

  1. Override configuration with environment variables if they exist

    Override configuration with environment variables if they exist.
    
    Hey, team. This is your friend Gabs from Harness, and I have a quick suggestion to allow us to provide some important configuration that overrides the config file app.config when necessary.
    
    For example, during my CD Pipeline, I will retrieve the Redis details from a Vault Server, using Harness expressions (<+secrets.getValue("redis_host")>) and use it in the K8s Deployment -> Pod -> Container environment variables.
    
    For example, I create a Secret or a Configmap to hold these, but then I serve the variables for the python app at runtime, with K8s's envFrom.
    
    Cheers!
    gacerioni authored Dec 8, 2023
    Configuration menu
    Copy the full SHA
    b0f2533 View commit details
    Browse the repository at this point in the history