Documentation ¶
Index ¶
- Constants
- func RemoveFinalizer(instance *v1beta1.ConstraintTemplate)
- type Adder
- func (a *Adder) Add(mgr manager.Manager) error
- func (a *Adder) InjectControllerSwitch(cs *watch.ControllerSwitch)
- func (a *Adder) InjectExpansionSystem(_ *expansion.System)
- func (a *Adder) InjectGetPod(getPod func(context.Context) (*corev1.Pod, error))
- func (a *Adder) InjectMutationSystem(_ *mutation.System)
- func (a *Adder) InjectOpa(o *constraintclient.Client)
- func (a *Adder) InjectProviderCache(_ *externaldata.ProviderCache)
- func (a *Adder) InjectTracker(t *readiness.Tracker)
- func (a *Adder) InjectWatchManager(wm *watch.Manager)
- type ReconcileConstraintTemplate
Constants ¶
View Source
const ( // ErrCreateCode indicates a problem creating a ConstraintTemplate CRD. ErrCreateCode = "create_error" // ErrUpdateCode indicates a problem updating a ConstraintTemplate CRD. ErrUpdateCode = "update_error" // ErrConversionCode indicates a problem converting a ConstraintTemplate CRD. ErrConversionCode = "conversion_error" // ErrIngestCode indicates a problem ingesting a ConstraintTemplate Rego code. ErrIngestCode = "ingest_error" )
Variables ¶
This section is empty.
Functions ¶
func RemoveFinalizer ¶
func RemoveFinalizer(instance *v1beta1.ConstraintTemplate)
Types ¶
type Adder ¶
type Adder struct { Opa *constraintclient.Client WatchManager *watch.Manager ControllerSwitch *watch.ControllerSwitch Tracker *readiness.Tracker GetPod func(context.Context) (*corev1.Pod, error) }
func (*Adder) Add ¶
Add creates a new ConstraintTemplate Controller 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) InjectControllerSwitch ¶
func (a *Adder) InjectControllerSwitch(cs *watch.ControllerSwitch)
func (*Adder) InjectExpansionSystem ¶
func (*Adder) InjectGetPod ¶
func (*Adder) InjectMutationSystem ¶
func (*Adder) InjectOpa ¶
func (a *Adder) InjectOpa(o *constraintclient.Client)
func (*Adder) InjectProviderCache ¶
func (a *Adder) InjectProviderCache(_ *externaldata.ProviderCache)
func (*Adder) InjectTracker ¶
func (*Adder) InjectWatchManager ¶
type ReconcileConstraintTemplate ¶
ReconcileConstraintTemplate reconciles a ConstraintTemplate object.
func (*ReconcileConstraintTemplate) Reconcile ¶
func (r *ReconcileConstraintTemplate) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a ConstraintTemplate object and makes changes based on the state read and what is in the ConstraintTemplate.Spec.
Click to show internal directories.
Click to hide internal directories.