kubestellar / kubeflex

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

bug: `kflex create wds2 -t host` fails but exits with status 0, when context wds2 pre-existing #238

Closed MikeSpreitzer closed 4 months ago

MikeSpreitzer commented 4 months ago

Describe the bug

If kubeconfig context "wds2" already exists then kflex create wds2 -t host will print an error message (which can easily be overlooked among many lines output), fail to achieve the desired result, and exit normally. This sets the stage for a puzzling failure later (such as https://github.com/kubestellar/kubestellar/issues/2096).

Steps To Reproduce

See above.

Expected Behavior

Since this is a fatal error situation, the exit status should be non-zero.

Additional Context

No response