uyuni-project / uyuni-tools

Tools to work with containerized Uyuni server
Apache License 2.0
14 stars 18 forks source link

Check if the namespace is defined in all the kubernetes commands #375

Open cbosdo opened 3 months ago

cbosdo commented 3 months ago

The server and the proxy may be running in a kubernetes namespace that is not default. In such a case the namespace need to be looked for and set with -n namespace in the kubectl commands. This has been ignored for a while and probably needs fixing in a few places.

Connection.Exec() should add the namespace automatically and Connection.GetPodName() should be able to retrieve the namespace too.