kn-plugin-operator

module
v0.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2024 License: Apache-2.0

README

kn-plugin-operator

kn-plugin-operator is a plugin of Knative Client, for managing Knative with Knative Operator from the command line.

Description

With this plugin, you can install/uninstall Knative Operator, install/uninstall Knative components, and configure Knative.

Build and Install

You must set up your development environment before you build.

Building:

Once you've set up your development environment, let's build the plugin.

$ go build -o kn-operator ./cmd/kn-operator.go

You'll get an executable plugin binary namely kn-operator in your current dir. You're ready to use kn-operator as a stand alone binary, check the available commands ./kn-operator -h.

Installing:

If you'd like to use the plugin with kn CLI, install the plugin by simply copying the executable file under kn plugins directory as:

mkdir -p ~/.config/kn/plugins
cp kn-operator ~/.config/kn/plugins

Note: The plugins directory defaults to $base_dir/plugins relative to your kn config file location.

On Windows, the default plugins directory is in %APPDATA%\kn\plugins

Check if plugin is loaded

kn -h

Run it

kn operator -h

You can use the built binary to run the commands. You can also use the bash scripts directly to run your commands. All the bash scripts are available under the directory scripts.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL