gatekeeper-operator

command module
v0.0.0-...-dfca470 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

README

OPA Gatekeeper Operator

master branch

Operator for OPA Gatekeeper

Design

Please see the Gatekeeper Operator design document located at https://docs.google.com/document/d/1Nxw4Agq6nJrPL24fJPiTXtjtLQRsLJtHo9x5urwYB_I/edit?usp=sharing for some background information.

Installation

To install the Gatekeeper Operator, you can either run it outside the cluster, for faster iteration during development, or inside the cluster.

But first we require installing the Operator CRD:

make install

Then proceed to the installation method you prefer below.

Outside the Cluster

If you would like to run the Operator outside the cluster, you'll have to set the WATCH_NAMESPACE environment variable to the namespace you want the Operator to monitor:

  1. Set the WATCH_NAMESPACE environment variable:
    export WATCH_NAMESPACE=gatekeeper-system
    
  2. You then run the Operator with:
    make run
    
Inside the Cluster

If you would like to run the Operator inside the cluster, you'll need to build a container image. You can use a local private registry, or host it on a public registry service like quay.io.

  1. Build your image:
    make docker-build IMG=<registry>/<imagename>:<tag>
    
  2. Push the image:
    make docker-push IMG=<registry>/<imagename>:<tag>
    
  3. Deploy the Operator:
    make deploy IMG=<registry>/<imagename>:<tag>
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.gatekeeper.sh
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.gatekeeper.sh
pkg
bindata
Code generated for package bindata by go-bindata DO NOT EDIT.
Code generated for package bindata by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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