Files
nimrod-up9 2996c1a4bc Install Mizu in a dedicated namespace (#123)
* Use "mizu" namespace instead of "default". Create and delete as necessary.

* Wait until namespace is deleted.

* Distinguish between timeout and other errors.

* Sorted consts.

* k8s provider gets the names of Mizu serviceaccount, clusterrole and clusterrolebindings from caller.

* Renames.

* Remove non-namespaced mizu resources when finished: clusterrole and clusterrolebindings.

* Don't wait for namespace deletion if it was already deleted.

* When watching pods, check for cancellation before reading from channels.

* Allow user to cancel resource deletion and to cancel the wait.

* Increased cleanup timeout.

* go mod tidy.

* Ignore cli build products.

* Print err.

* Don't delete clusterrole and clusterrolebinding if we do not have permissions.

* Added roles list in README.

* Added clusterrole and clusterrolebindings examples.
2021-07-22 14:26:12 +03:00
..
2021-06-21 16:23:14 +03:00
2021-07-20 16:57:38 +03:00
2021-05-06 18:30:01 +03:00

mizu CLI

Usage

./mizu {pod_name_regex}

Optional Flags

flag default purpose
--no-gui false Don't host the web interface (not applicable at the moment)
--gui-port 8899 local port that web interface will be forwarded to
--namespace use namespace different than the one found in kubeconfig
--kubeconfig Path to custom kubeconfig file

There are some extra flags defined in code that will show up in ./mizu --help, these are non functional stubs for now

Installation

Make sure your go version is at least 1.11

  1. cd to mizu/cli
  2. Run go mod download (may take a moment)
  3. Run go build mizu.go

Alternatively, you can build+run directly using go run mizu.go {pod_name_regex}

Known issues

  • mid-flight port forwarding failures are not detected and no indication will be shown when this occurs