Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s CLI usability fixes #10808

Merged
merged 1 commit into from Oct 30, 2019
Merged

Conversation

wallyworld
Copy link
Member

Description of change

There's several small usability fixes for the k8s CLI:

  • remove-unit has a better error message when a unit name is supplied
  • use "k8s" consistently instead of "kubernetes" or "Kubernetes" in CLI text
  • add-k8s reports existing or new storage class correctly
  • CLI help text improved
  • add-k8s --cloud and --region options improved (dumb cases no longer allowed)

The last change means that:
-- cloud only accepts a cloud name
-- you can't specify just a region with --region unless for gke or aks

There's a slight incompatibility with 2.6 but the logical way to use the options is the what's supported; only the pathological corner cases have been removed. It's now less confusing. Plus using microk8s or GKE/AWS or CDK on a supported cloud it's not an issue anyway; it's only for cases where the undercloud cannot be detected.

QA steps

juju remove-unit and check the error message
add-k8s on a GKE cluster
add-k8s on microk8s
add-k8s on CDK without node labels with and without an existing storage class
(testing the combinations of --cloud and --region)

Bug reference

https://bugs.launchpad.net/juju/+bug/1847149

@wallyworld
Copy link
Member Author

@wallyworld
Copy link
Member Author

!!build!!

Copy link
Contributor

@anastasiamac anastasiamac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really neat! Thank you :)

cmd/juju/caas/add.go Show resolved Hide resolved
cmd/juju/caas/add_test.go Outdated Show resolved Hide resolved
@wallyworld
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit 230c2f5 into juju:develop Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants