Closed HashNuke closed 2 months ago
hi @HashNuke is this issue still relevant for cnti?
Confirmed. This issue still exists. Screenshot below. Tagging for contributors.
I added method ensure_kubeconfig!
into the create_namespace
task. Also added one condition into this method, when the KUBECONFIG is unset and default path to config file does not exist, it raises the error. It looks like this:
Also I write improvement ticket ( https://github.com/cnti-testcatalog/testsuite/issues/1968 ). There is 1 case when the test passes, but the k8s cluster is not up and running. Case occurs when KUBECONFIG is set successfully, indicating that the path to config file exists, but the file itself is empty or contains some faults, resulting k8s cluster is not running. So KUBECONFIG variable is set (the test passes), but the cluster is not running.
ready for peer review, @taylor @HashNuke @agentpoyo
Describe the bug
When
cnf_setup
is run without a Kubernetes cluster configured, then the cnf_setup command results in a crash and displays the stacktrace.To Reproduce
Expected behavior
Should display an error that a Kubernetes server is not accessible.