This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
Tye deploy doesn't respect namespace when checking kubectl cluster-info #1544
Labels
bug
Something isn't working
Describe the bug
Some kubernetes providers doesn't allow you to access the "kube system". This is a problem when deploying, since the
KubectlDetector
class callskubectl cluster-info
.No matter what namespace is defined for your current context,
kubectl cluster-info
always tries to retrieve fromkube-system
unless you directly specifykubectl cluster-info --namespace=my-namespace
The issue is that even if I try to deploy with
tye deploy --namespace my-namespace
it doesn't use that namespace when it checks if kubectl is connected to a cluster inIsKubectlConnectedToClusterAsync()
- so in return I get aForbidden
error back, and since it has a non zero exit code, Tye says that kubectl is not connected to a cluster (even though it is).Further technical details
Include the output of
tye --version
0.11.0-alpha.22111.1+3edef5428949c518c078844d6438e5ba86fce600
If possible rerun the command with
-v debug
and include the outputLinux running on WSL:
cat /etc/os-release
The text was updated successfully, but these errors were encountered: