Repository navigation
fix(helm): remove build-auth-config init container - #3047
Merged
Merged
Conversation
The configmap-auth.yaml template already merges secrets via Helm's lookup function at render time, making the Alpine/jq init container unnecessary. Secrets are now injected directly through the ConfigMap without runtime merging. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
tlgimenes
force-pushed
the
tlgimenes/remove-auth-init
branch
from
April 7, 2026 23:24
2cf9313 to
6cddc45
Compare
nicacioliveira
approved these changes
Apr 7, 2026
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the
build-auth-configinit container from the Helm deployment. Theconfigmap-auth.yamltemplate already handles secret merging via Helm'slookupfunction at render time, making the runtime Alpine/jq init container redundant.Addressing SRE feedback point by point
Correct — the init container was completely redundant. The
configmap-auth.yamlalready uses Helm'slookupto read the Secret and inject values into the ConfigMap athelm install/upgradetime (lines 10-49 ofconfigmap-auth.yaml). The init container was doing the same merge again at pod startup.Exactly. The
secret.authConfigSecretNamevalue still works —configmap-auth.yamluses it withlookupto pull secret values directly into the rendered ConfigMap. No runtime merging, no Alpine image, no jq.The auth config is now always mounted as a single ConfigMap volume (which already contains the merged secrets from render time). Removed the 3 extra volumes that the init container needed (
auth-secrets,auth-config-base,auth-config-sharedemptyDir).Removed entirely. -77 lines, no additions.
What changed
build-auth-configinit container (Alpine + jq runtime merge)auth-config-sharedvsauth-config)auth-secrets(Secret),auth-config-base(ConfigMap),auth-config-shared(emptyDir)What didn't change
configmap-auth.yaml— still useslookupto merge secrets whenauthConfigSecretNameis setsecret.authConfigSecretName— still works as a values.yaml configdeco-mcp-mesh-stg-auth-secrets) don't need changesTest plan
helm templateoutput shows no init container🤖 Generated with Claude Code
Summary by cubic
Removed the
build-auth-configinit container and now rely onconfigmap-auth.yamlwith Helmlookupto merge secrets at render time. Simplifies deployment by removing the Alpine/jq runtime merge and bumps the Helm chart to version 0.3.0.auth-secrets,auth-config-base,auth-config-shared.secret.authConfigSecretNameremains supported and secrets are merged into the rendered ConfigMap.Written for commit 6cddc45. Summary will update on new commits.