Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adder ¶
type Adder struct {
// MutationSystem holds a reference to the mutation system to which
// mutators will be registered/deregistered
MutationSystem *mutation.System
// Tracker accepts a handle for the readiness tracker
Tracker *readiness.Tracker
// GetPod returns an instance of the currently running Gatekeeper pod
GetPod func(context.Context) (*corev1.Pod, error)
// Kind for the mutation object that is being reconciled
Kind string
// NewMutationObj creates a new instance of a mutation struct that can
// be fed to the API server client for Get/Delete/Update requests
NewMutationObj func() client.Object
// MutatorFor takes the object returned by NewMutationObject and
// turns it into a mutator. The contents of the mutation object
// are set by the API server.
MutatorFor func(client.Object) (types.Mutator, error)
// Events enables queueing other Mutators for updates.
Events chan event.GenericEvent
// EventsSource watches for events broadcast to Events.
// If multiple controllers listen to EventsSource, then
// each controller gets a copy of each event.
EventsSource source.Source
}
type Reconciler ¶
Reconciler reconciles mutator objects.
Click to show internal directories.
Click to hide internal directories.