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

Allow option to exclude default keys from the generated secret #163

Open
NominalTrajectory opened this issue Sep 10, 2024 · 0 comments
Open

Comments

@NominalTrajectory
Copy link

Description

Currently, the Postgres operator includes default keys (like HOST) in generated secrets. This causes conflicts when applications use these keys for their own purposes, preventing users from mounting the entire secret without overriding application variables.

Proposed Feature

Add an option to fully override keys in the secret from the secretTemplate, allowing users to drop default keys instead of appending them.

Benefits

  1. Prevents conflicts with application-specific environment variables
  2. Provides greater flexibility in secret configuration
  3. Improves compatibility with various applications

Suggested Implementation

  1. Add a new CRD field, e.g., excludeDefaultKeys that defaults to false
  2. Allow configuring this setting at the operator level
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

No branches or pull requests

1 participant