Show active capella org in cbenv output when set #340
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently when we run the cb-env command it only shows the capella org associated with the active cluster. This can lead to confusion since the org associated with the active cluster is not necessarily the same as the active org :
It initially seems that we are unauthorised to connect to the org
my-org
however we can see that the active capella org is actuallynot-an-org
which is the org used in the running of the projects command. To make this less confusing thisi PR removes the capella flag from cb-env and always shows the active org and differentiates it from the cluster org:Another solution considered was to make the cluster-organization of the active cluster the active-organization. But this means that we would be changing the active org when changing the active cluster, which doesn't feel right considering orgs are higher level entities than clusters. Also we want to have an active org without having to have an active cluster.