kubestellar / kubeflex

A flexible and scalable platform for running Kubernetes control plane APIs.
Apache License 2.0
46 stars 13 forks source link

🐛 Expose failure to switch to hosting context #256

Closed MikeSpreitzer closed 3 months ago

MikeSpreitzer commented 3 months ago

Summary

This PR make kflex ctx print an error message and exit with non-zero status when it fails to do its job.

Related issue(s)

Fixes #253

pdettori commented 3 months ago

@MikeSpreitzer is there an issue also in the e2e test? The CI check does not pass by exposing this error.

MikeSpreitzer commented 3 months ago

I have revised the new error message to explain how to recover. This helps with the sharp edge discussed in https://github.com/kubestellar/kubestellar/pull/2157#discussion_r1611807692

MikeSpreitzer commented 3 months ago

@pdettori: now this passes E2E. Ready for another look.