Skip to content

Quote NINJA_KUBECONFIG when writing kubeconfig#213

Merged
tamalsaha merged 1 commit into
masterfrom
fix-kubeconfig-quoting
Jun 4, 2026
Merged

Quote NINJA_KUBECONFIG when writing kubeconfig#213
tamalsaha merged 1 commit into
masterfrom
fix-kubeconfig-quoting

Conversation

@tamalsaha

Copy link
Copy Markdown
Member

Summary

  • Quote ${NINJA_KUBECONFIG} in release.yml and deploy.yml so the multi-line YAML keeps its newlines when written to ~/.kube/config.

The unquoted echo ${NINJA_KUBECONFIG} was word-splitting the secret on whitespace, collapsing newlines into spaces. That produced an invalid kubeconfig and caused the v2026.6.12 Release run to fail in "Deploy to QA":

error: error loading config file "/home/runner/.kube/config": yaml: mapping values are not allowed in this context

Ref: https://github.com/appscode/website/actions/runs/26952089345/job/79522602913

Test plan

  • Re-run the release workflow (or next tag) and confirm kubectl get nodes succeeds in "Deploy to QA".

Unquoted `echo ${NINJA_KUBECONFIG}` word-splits the multi-line YAML on
whitespace, collapsing newlines into spaces and producing an invalid
kubeconfig (`yaml: mapping values are not allowed in this context`).

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha tamalsaha merged commit 11f822c into master Jun 4, 2026
7 checks passed
@tamalsaha tamalsaha deleted the fix-kubeconfig-quoting branch June 4, 2026 12:59
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 23ebd4c):

https://appscode-v3-hugo--pr213-fix-kubeconfig-quoti-i0iry0kz.web.app

(expires Thu, 11 Jun 2026 12:59:55 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 1720b7810a846fabdac7ca3b944d0f3a577e94de

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.

1 participant