[BUG] No clean / complete uninstall with Disable-AksHciArcConnection
- Dominant language
- PowerShell
- Stars
- 118
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
After connecting a cluster to Azure Arc with `Enable-AksHciArcConnection -name ` one pod does not complete:

I've tried to solve the issue by re-installing with `Disable-AksHciArcConnection` followed by `Enable-AksHciArcConnection`. This fails with a very long error message and by scrolling through it I found:
_WARNING: cli.azext_connectedk8s._utils: The helm release 'azure-arc' is present but the azure-arc namespace/configmap
is missing. Please run 'helm delete azure-arc --no-hooks' to cleanup the release before onboarding the cluster again._

After doing this `Enable-AksHciArcConnection` finished successful without any issue and all pods a green in the azure-arc namespace.
**To Reproduce**
Enable the Arc connection, disable it and enable it again.
**Expected behavior**
Disable Arc connection should do a clean uninstall.
**Screenshots**
**Environment (please complete the following information):**
- Version 1.1.39
- AKS-HCI Version August 2022
- Kubernetes Version 1.23.5
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.