Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubeconfig file shows error while deploying to aks using actions #13

Closed
vivishno opened this issue Sep 29, 2020 · 8 comments
Closed

kubeconfig file shows error while deploying to aks using actions #13

vivishno opened this issue Sep 29, 2020 · 8 comments
Assignees

Comments

@vivishno
Copy link

While running a workflow used to deploy to azure kubernetes setting the context and then deploying to aks using k8-deploy action gives below error-
Error->
##[error]YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 1, column 85:
... able. This is insecure. Location: /home/runner/work/_temp/kubeco ...

Have attached workflow steps used and detailed logs of action run
Workflow file used->workflowfile.txt

Detailed logs->logs.txt

@thesattiraju
Copy link
Contributor

Looks like we have one more occurrence: Azure/actions#48

@thesattiraju
Copy link
Contributor

@shigupt202 could you take a look?

@shigupt202
Copy link
Contributor

This problem was because of the security warning introduced in latest Helm releases, as a result of which the baked manifest getting generated by the workflow contained the warning message. I'll change the kubeconfig file's permissions to fix this. In the meantime, customers can continue to use the action with older Helm releases (v3.3.1 or before).

@greenie-msft
Copy link

Sorry @shigupt202, I'm a little unclear on where the Helm version should be set, Can you clarify where exactly we should specify that? I'm not seeing that as a property in the deploy action itself.

@shigupt202
Copy link
Contributor

@greenie-msft The problem is not with aks-set-context or k8s-deploy. The error message is actually coming because the manifest file generated by helm command in k8s-bake action contain the security warning. You should be having the same issue, assuming there's a k8s-bake step present in your workflow.

@greenie-msft
Copy link

Thanks for the reply @shigupt202. Yes, we are using the k8s-bake action alongside the deploy which is using helm2 as the render engine.

Above you mentioned using Helm v3.3.1 or before. Looks like this issue is also present with Helm 2?

@shigupt202
Copy link
Contributor

You can check the Helm releases to identify which versions have the problem. I believe more than one month old releases should be fine.

@shigupt202
Copy link
Contributor

Also, if you have not specified any version for Helm in the action, by default it fetches the latest. helm2 doesn't necessarily mean that the version is 2.x (The input name is misleading). Please verify that as well.

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

No branches or pull requests

4 participants