Skip to content

feat: (manager) -> support existingConfigSecret for external config manager#500

Open
junjieteo wants to merge 3 commits into
dragonflyoss:mainfrom
AvantFinCo:feat/add-postgres-config
Open

feat: (manager) -> support existingConfigSecret for external config manager#500
junjieteo wants to merge 3 commits into
dragonflyoss:mainfrom
AvantFinCo:feat/add-postgres-config

Conversation

@junjieteo
Copy link
Copy Markdown

Description

This PR adds a new manager.existingConfigSecret option that allows users to mount a pre-existing Kubernetes Secret containing the complete manager.yaml configuration, instead of using the chart-generated ConfigMap.

Changes

File Change
values.yaml Added manager.existingConfigSecret option (default: empty string)
manager-configmap.yaml Wrapped ConfigMap creation in conditional - only created when existingConfigSecret is not set
manager-deployment.yaml Volume mount conditionally uses Secret or ConfigMap; config checksum annotation only added when using generated ConfigMap

Usage

manager:
  existingConfigSecret: my-manager-config-secret

@junjieteo junjieteo marked this pull request as draft April 30, 2026 18:33
@junjieteo junjieteo force-pushed the feat/add-postgres-config branch from 4c0371a to 2cf5a1d Compare May 1, 2026 12:56
junjieteo added 3 commits May 1, 2026 21:01
…ement

Allow users to provide a pre-existing Secret containing the full
manager.yaml config instead of using the chart-generated ConfigMap.
Enables integration with External Secrets Operator, Sealed Secrets,
and other secret management solutions.

Signed-off-by: Teo Jun Jie <jun.teo@avant.com>
Signed-off-by: Teo Jun Jie <jun.teo@avant.com>
Signed-off-by: Teo Jun Jie <jun.teo@avant.com>
@junjieteo junjieteo force-pushed the feat/add-postgres-config branch from 2cf5a1d to 8475007 Compare May 1, 2026 13:01
@junjieteo junjieteo marked this pull request as ready for review May 1, 2026 17:39
@github-actions github-actions Bot requested a review from imeoer May 1, 2026 17:39
@yxxhero yxxhero added the enhancement New feature or request label May 2, 2026
@yxxhero yxxhero requested a review from Copilot May 2, 2026 08:14
@yxxhero yxxhero enabled auto-merge (squash) May 2, 2026 08:15
@yxxhero yxxhero disabled auto-merge May 2, 2026 08:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Helm chart support for sourcing the manager configuration from a pre-existing Kubernetes Secret instead of the chart-generated ConfigMap. In the Dragonfly chart, that fits the existing pattern of templating manager deployment resources from values.yaml, while attempting to let operators externalize config management.

Changes:

  • Added a new manager.existingConfigSecret value and documented it in chart values/README.
  • Made manager ConfigMap creation conditional so it is skipped when an external Secret is supplied.
  • Switched the manager Deployment’s config volume between ConfigMap and Secret, and skipped the config checksum annotation for the Secret path.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
charts/dragonfly/values.yaml Adds the new manager value and inline docs for external Secret-based config.
charts/dragonfly/templates/manager/manager-deployment.yaml Conditionally mounts manager config from either Secret or ConfigMap and adjusts pod annotations.
charts/dragonfly/templates/manager/manager-configmap.yaml Skips rendering the generated manager ConfigMap when an external Secret is configured.
charts/dragonfly/README.md Updates generated chart docs for the new value.
charts/dragonfly/Chart.yaml Bumps chart version and release notes metadata for the feature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread charts/dragonfly/templates/manager/manager-deployment.yaml
Comment thread charts/dragonfly/values.yaml
Comment thread charts/dragonfly/README.md
@junjieteo junjieteo force-pushed the feat/add-postgres-config branch from 1aa0382 to 8475007 Compare May 2, 2026 10:49
@junjieteo
Copy link
Copy Markdown
Author

junjieteo commented May 4, 2026

@gaius-qi @imeoer @chlins @CormickKneey may i get a review for this?

@gaius-qi
Copy link
Copy Markdown
Member

gaius-qi commented May 7, 2026

@junjieteo Thanks for the contribution! However, I don't think this is a generally needed feature.

The standard approach in this chart is to configure the manager via values.yaml, which then renders the ConfigMap accordingly. This covers the vast majority of use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants