Azure / Azure/azure-cli-extensions
az connectedk8s connect results in an error but kubectl works fine on local
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
## Describe the bug
az connectedk8s connect results in Kube config parsing error but kubctl command works fine on the machine. I can connect to local running Microk8s cluster either via kubectl or k9s. I also parsed the kube config externally to see if there is any issue with the config file but didn't find any discrepancy.
**Command Name**
`az connectedk8s connect
Extension Name: connectedk8s. Version: 1.2.5.`
**Errors:**
```
Problem loading the kubeconfig file.unacceptable character #x0000: special characters are not allowed
in "C:\Users\Administrator/.kube/config", position 3
```
## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- _Put any pre-requisite steps here..._
- `az connectedk8s connect --name {} --resource-group {} --location {} --tags {} {}`
## Expected Behavior
Should be able to connect to local K8s cluster when kubectl is able to connect to it.
## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI
azure-cli 2.30.0 *
azure-cli-ml 1.37.0
Extensions:
azure-cli-ml 1.37.0
connectedk8s 1.2.5
```
## Additional Context
Is there another way where I can get more verbose error information? Thank you.
Contributor guide
Assessment
This issue has not been assessed yet.