feat: Improved convenience when using External Secrets through separation of ConfigMap and Secret#337
Conversation
|
Hi, thanks for the PR. I saw the related issue and it made sense to me.
|
|
Hi @klesh – thanks again for the review! TL;DR : the change is backward-compatible, so we don’t need a compatibility shim or extra docs. Topic Explanation If you’d still prefer a brief “no action required” note in the website repo, just let me know and I’ll add it. Otherwise I think the chart can ship as-is. Thanks for confirming! |
|
Thanks for the explanation. |
0a05cdc to
d6629e2
Compare
|
Thanks! I fixed it. 🙏 |
|
What is |
- Move non-sensitive database config to ConfigMap - Keep only passwords in Secret for better ExternalSecret integration - Add configMapRef to deployment envFrom section This change allows users to inject only passwords via ExternalSecret while keeping database configuration in ConfigMap, following Kubernetes best practices.
d6629e2 to
8a8e474
Compare
|
|
|
Thanks for the clarification. |
|
Hi, @kahirokunn. Could you take a look at #340 and #349 when you have a moment? I suspect it might be related to some shared secrets that were deleted in the PR. |
|
Thank you for raising #340 and #349—I’ve reviewed them and realized I overlooked a few important considerations. I’m currently working on implementing the necessary fixes in PR #350. Additionally, to ensure ongoing stability of the Helm chart, I’ve introduced a CI workflow (smoke tests) to automatically validate key functionality going forward. I sincerely apologize for the oversight and appreciate your patience and guidance throughout this process. |
|
@kahirokunn Thanks for looking into the problem and for your quick response. Would you be interested in joining us as an Apache Committer for this project? We could really use an excellent DevOps expert like you to help maintain the helm-chart repository. If you’re interested, please feel free to reach out to me on Slack. Thanks again for your contributions! |
- Move non-sensitive database config to ConfigMap - Keep only passwords in Secret for better ExternalSecret integration - Add configMapRef to deployment envFrom section This change allows users to inject only passwords via ExternalSecret while keeping database configuration in ConfigMap, following Kubernetes best practices.
Overview
Separates MySQL configuration information into confidential and non-confidential data to improve integration with external secret management systems such as External Secret.
Changes
🔧 Modified Files
charts/devlake/templates/secrets.yaml- Modified to contain only confidential informationcharts/devlake/templates/configmap.yaml- Newly created: manages non-confidential settingscharts/devlake/templates/deployments.yaml- Updated to reference both ConfigMap and Secret📋 Detailed Changes
Secret (confidential information only)
ConfigMap (non-confidential settings) - Newly created
Deployment
🎯 Problems Resolved
Issues Before Changes
MYSQL_USER,MYSQL_DATABASE,MYSQL_URLalso needed to be managed externallyImprovements After Changes
🔄 Compatibility
option.autoCreateSecret: true, operates as before📚 Related Issues
Fixes #336