Skip to content

Conversation

@Manas-Dikshit
Copy link

This PR fixes Helm deployment failures caused by unquoted values in various ConfigMap templates.
Without quotes, YAML rendering could break when values (e.g., passwords, URIs, service URLs) contain special characters like @, :, or /, or when values were misinterpreted as non-strings.

Changes Made
Added | quote filters (and printf "%s:%s" where needed) to ensure all .Values references render as valid string literals.

Files Updated:
deploy/helm/templates/chatbot/config.yaml
deploy/helm/templates/community/config.yaml
deploy/helm/templates/identity/config.yaml
deploy/helm/templates/mailhog/config.yaml
deploy/helm/templates/web/config.yaml

Fixes include:
Quoting database credentials, ports, and URLs.
Properly quoting concatenated service endpoints (service:port) using printf.
Ensuring consistent YAML string rendering across all Helm templates.

Impact
Helm templates now render valid YAML even when credentials or URLs contain special characters.
helm upgrade --install works reliably with custom values.yaml.
No functional logic changes — only template rendering improvements.

Testing
Verified templates render correctly using:
helm template ./deploy/helm -f ./deploy/helm/values.yaml > rendered.yaml
kubectl apply -f rendered.yaml --dry-run=client

Confirmed successful CrAPI deployment on Kubernetes 1.30 / Helm 3.15.
Linked Issue
Fixes #324

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

Successfully merging this pull request may close these issues.

HELM deployments do not work

1 participant