Documentation ¶
Index ¶
- func HasFinalizer(instance *unstructured.Unstructured) bool
- func RemoveFinalizer(instance *unstructured.Unstructured)
- type Adder
- func (a *Adder) Add(mgr manager.Manager) error
- func (a *Adder) InjectControllerSwitch(cs *watch.ControllerSwitch)
- func (a *Adder) InjectMutationSystem(mutationSystem *mutation.System)
- func (a *Adder) InjectOpa(o *constraintclient.Client)
- func (a *Adder) InjectTracker(t *readiness.Tracker)
- func (a *Adder) InjectWatchManager(w *watch.Manager)
- type ConstraintsCache
- type ReconcileConstraint
- type StatsReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasFinalizer ¶
func HasFinalizer(instance *unstructured.Unstructured) bool
func RemoveFinalizer ¶
func RemoveFinalizer(instance *unstructured.Unstructured)
Types ¶
type Adder ¶
type Adder struct { Opa *constraintclient.Client ConstraintsCache *ConstraintsCache WatchManager *watch.Manager ControllerSwitch *watch.ControllerSwitch Events <-chan event.GenericEvent Tracker *readiness.Tracker GetPod func(context.Context) (*corev1.Pod, error) ProcessExcluder *process.Excluder // IfWatching allows the reconciler to only execute functions if a constraint // template is currently being watched. It is designed to be atomic to avoid // race conditions between the constraint controller and the constraint template // controller IfWatching func(schema.GroupVersionKind, func() error) (bool, error) }
func (*Adder) Add ¶
Add creates a new Constraint Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func (*Adder) InjectControllerSwitch ¶
func (a *Adder) InjectControllerSwitch(cs *watch.ControllerSwitch)
func (*Adder) InjectMutationSystem ¶
func (*Adder) InjectOpa ¶
func (a *Adder) InjectOpa(o *constraintclient.Client)
func (*Adder) InjectTracker ¶
func (*Adder) InjectWatchManager ¶
type ConstraintsCache ¶
type ConstraintsCache struct {
// contains filtered or unexported fields
}
func NewConstraintsCache ¶
func NewConstraintsCache() *ConstraintsCache
type ReconcileConstraint ¶
type ReconcileConstraint struct {
// contains filtered or unexported fields
}
ReconcileConstraint reconciles an arbitrary constraint object described by Kind.
type StatsReporter ¶
type StatsReporter interface {
// contains filtered or unexported methods
}
StatsReporter reports audit metrics.
Click to show internal directories.
Click to hide internal directories.