Documentation
¶
Index ¶
- type Adder
- func (a *Adder) Add(mgr manager.Manager) error
- func (a *Adder) InjectCacheManager(cm *cm.CacheManager)
- func (a *Adder) InjectConstraintTemplateEvent(ctEvents chan event.GenericEvent)
- func (a *Adder) InjectGetPod(getPod func(ctx context.Context) (*corev1.Pod, error))
- func (a *Adder) InjectTracker(t *readiness.Tracker)
- type ChannelFullError
- type ReconcileConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adder ¶
type Adder struct {
Tracker *readiness.Tracker
CacheManager *cm.CacheManager
CtEvents chan<- event.GenericEvent
// GetPod returns an instance of the currently running Gatekeeper pod
GetPod func(context.Context) (*corev1.Pod, error)
}
func (*Adder) Add ¶
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) InjectCacheManager ¶ added in v3.14.0
func (a *Adder) InjectCacheManager(cm *cm.CacheManager)
func (*Adder) InjectConstraintTemplateEvent ¶ added in v3.21.0
func (a *Adder) InjectConstraintTemplateEvent(ctEvents chan event.GenericEvent)
func (*Adder) InjectGetPod ¶ added in v3.18.1
func (*Adder) InjectTracker ¶
type ChannelFullError ¶ added in v3.21.0
type ChannelFullError struct{}
func (*ChannelFullError) Error ¶ added in v3.21.0
func (e *ChannelFullError) Error() string
func (*ChannelFullError) Temporary ¶ added in v3.21.0
func (e *ChannelFullError) Temporary() bool
type ReconcileConfig ¶
type ReconcileConfig struct {
// contains filtered or unexported fields
}
ReconcileConfig reconciles a Config object.
func (*ReconcileConfig) Reconcile ¶
func (r *ReconcileConfig) Reconcile(ctx context.Context, 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).
Click to show internal directories.
Click to hide internal directories.