config

package
v3.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CfgKey = types.NamespacedName{Namespace: "gatekeeper-system", Name: "config"}

Functions

This section is empty.

Types

type Adder

type Adder struct {
	Opa          opa.Client
	WatchManager *watch.WatchManager
}

func (*Adder) Add

func (a *Adder) Add(mgr manager.Manager) error

Add creates a new ConfigController and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func (*Adder) InjectOpa

func (a *Adder) InjectOpa(o opa.Client)

func (*Adder) InjectWatchManager

func (a *Adder) InjectWatchManager(wm *watch.WatchManager)

type ReconcileConfig

type ReconcileConfig struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileConfig reconciles a Config object

func (*ReconcileConfig) Reconcile

func (r *ReconcileConfig) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Config object and makes changes based on the state read and what is in the Config.Spec Automatically generate RBAC rules to allow the Controller to read all things (for sync) update is needed for finalizers +kubebuilder:rbac:groups=*,resources=*,verbs=get;list;watch;update;patch +kubebuilder:rbac:groups=config.gatekeeper.sh,resources=configs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=config.gatekeeper.sh,resources=configs/status,verbs=get;update;patch

Jump to

Keyboard shortcuts

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