A command line tool to support Kyma developers
-
version
: Shows the kymactl version. The version is set at compile time passing it to the go linker as a flag:go build -o kymactl -ldflags "-X github.com/kyma-incubator/kymactl/cmd.Version=1.5.0"
-
status
: Tracks the status of a Kyma cluster (replaces theis-installed.sh
script) -
help
: Displays usage for the given command (e.g.kymactl help
,kymactl help status
, etc...)
To follow this section a kubectl version of 1.12.0 or later is required.
A plugin is nothing more than a standalone executable file, whose name begins with kubectl- . To install a plugin, simply move this executable file to anywhere on your PATH.
Rename a kymactl
binary to kubectl-kyma
and place it anywhere in your PATH:
sudo mv ./kymactl /usr/local/bin/kubectl-kyma
Run kubectl plugin list
command and you will see your plugin in the list of available plugins.
You may now invoke your plugin as a kubectl command:
$ kubectl kyma status
Kyma is running!
To know more about extending kubectl with plugins read kubernetes documentation.