kubestellar / kubeflex

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

🐛 Expose failure to switch to hosting context #256

Closed MikeSpreitzer closed 6 months ago

MikeSpreitzer commented 6 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 6 months ago

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

MikeSpreitzer commented 6 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 6 months ago

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