Skip to content

[Feature]: Allow to configure database host from secrets #11025

@hpedrorodrigues

Description

@hpedrorodrigues

The Feature

Allow to configure the database host from secrets in the same way we can configure credentials.

e.g.,

secret:
name: postgres
usernameKey: username
passwordKey: password


At the moment, if we want to do this, we need to update environmentSecrets (or another similar configuration) with the desired secret (that contains the host, DATABASE_HOST for instance), and set db.endpoint=$(DATABASE_HOST). However, the problem is that secrets in environmentSecrets are not injected into the migration job, which makes Kubelet use the literal value since there is nothing to replace (no DATABASE_HOST env var) during startup.

Motivation, pitch

This will make the configuration easier since we will use the same pattern we already use for credentials.

Are you a ML Ops Team?

Yes

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions