Closed cbuto closed 1 month ago
This PR handles the case where up ctx upbound/upbound-gcp-us-west-1/default is ran and there is no current-context set (k ctx -u).
up ctx upbound/upbound-gcp-us-west-1/default
k ctx -u
Prior to these changes, the CLI would fail to set the context i.e:
up: error: ctx.Cmd.Run(): no "" context found
with these changes, the same command now runs successfully without a current context set.
Fixes https://github.com/upbound/up/issues/485
I have:
make reviewable
backport release-x.y
updated unit tests + manual testing
Description of your changes
This PR handles the case where
up ctx upbound/upbound-gcp-us-west-1/default
is ran and there is no current-context set (k ctx -u
).Prior to these changes, the CLI would fail to set the context i.e:
with these changes, the same command now runs successfully without a current context set.
Fixes https://github.com/upbound/up/issues/485
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR, as appropriate.How has this code been tested
updated unit tests + manual testing