-
Notifications
You must be signed in to change notification settings - Fork 40
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
Comments
Looks like we have one more occurrence: Azure/actions#48 |
@shigupt202 could you take a look? |
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). |
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. |
@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. |
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? |
You can check the Helm releases to identify which versions have the problem. I believe more than one month old releases should be fine. |
Also, if you have not specified any version for Helm in the action, by default it fetches the latest. |
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
The text was updated successfully, but these errors were encountered: