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

feat: enable configs values to be templated #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Lowaiz
Copy link

@Lowaiz Lowaiz commented May 4, 2022

Add the possibility to use template syntax inside the configs sub-values

Since the config file conf.php need credentials for database connection, we should be able to fetch these credentials via vault and be able to insert them inside the configuration.

Example of this feature inside Values.yaml file:

configs:
  conf.php: |-
    [main]
    ...
    [model]
    class = Database
    [model_options]
    dsn = "pgsql:host={{ $.Values.secrets.database.host }};dbname={{ $.Values.secrets.database.name }};charset=UTF8"
    tbl = "{{ $.Values.secrets.database.prefix }}"
    usr = "{{ $.Values.secrets.database.user }}"
    pwd = "{{ $.Values.secrets.database.password }}"
    opt[12] = true

@Lowaiz Lowaiz changed the title feat : enable configs values to be templated feat: enable configs values to be templated May 4, 2022
@bdashrad bdashrad self-requested a review November 22, 2022 17:04
@bdashrad bdashrad self-assigned this Jan 14, 2023
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.

2 participants