Automate installing of operators on a cluster.
A Kubernetes/OpenShift cluster available.
Use the provided manifest to deploy the tool as a Job in your cluster.
oc apply -f deploy/install.yaml
By default, a new namespace will be created called operator-audit
. The Job will be created and run in this namespace.
There are several Make targets available to build and run the container image locally.
Build the container image locally.
make build
Push the container image to a remote registry.
make push
Run the container image locally.
make run
Several variables can be used to customize the build and run targets.
The IMAGE_BUILDER
variable by default is set to podman
. Use this variable if an alternate image builder is desired.
make build IMAGE_BUILDER=docker
The IMAGE_NAME
variable controls the name of the resulting container image.
make build IMAGE_NAME=my-image
The IMAGE_REPO
variable controls the name of container registry/repository to use.
make build IMAGE_REPO=containers.pkg.github.com/johndoe
The IMAGE_VERSION
variable controls the tag that will be used for the container image.
make build IMAGE_VERSION=v1.0.0
The KUBE_CONFIG
variable by default is set to ~/.kube/config
. This variable can be used to refer to an alternate kubeconfig to be used when running the image locally.
make run KUBE_CONFIG=~/my-kube-config.yaml
The TEMP_DIR
variable by default is set to 'pwd'/tmp
. This variable can be used to change the directory that is used to cache the generated artifacts when running the image locally.
make run TEMP_DIR=`pwd`/my-dir