operator-dev-plugin

module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0

README

operator-dev-plugin

This is a kubectl plugin that extends the the OpenShift CLI command with the operator-dev sub-command. This sub-command can perform various tasks on operators that operator developers need to do in order to test their changes.

Installation

go get -u github.com/mfojtik/operator-dev-plugin
cd $GOPATH/src/github.com/mfojtik/operator-dev-plugin
make build
cp ./bin/kubectl-operator_dev <PATH> # Where <PATH> is a directory in your $PATH

Alternatively, you can grab the pre-build binaries from the release page. After downloading the binary, remove the _linux or _darwin suffix and copy the binary to your $PATH.

Usage

The override command is used when developer want to override the operator container image with custom built image, typically for testing purposes. The command will edit clusterversion/version object and set the right override for the operator deployment. The it will update the operator deployment and set the desired image for it.

oc operator-dev override kube-apiserver --image=docker.io/mfojtik/custom-image:debug

In case developer want to revert this change and make cluster version operator manage the operator again:

oc operator-dev override kube-apiserver --managed

Directories

Path Synopsis
cmd
pkg
cmd

Jump to

Keyboard shortcuts

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