Documentation ¶
Index ¶
- func ContextSecrets() *handler.Funcs
- type CreateFunc
- type Interface
- type Type
- func (w *Type) CreateFromLookup(field indexer.IndexField) CreateFunc
- func (w *Type) UpdateFromLookup(field indexer.IndexField) UpdateFunc
- func (w *Type) WatchApiTemplate() *handler.Funcs
- func (w *Type) WatchContexts(index indexer.IndexField) *handler.Funcs
- func (w *Type) WatchResources(index indexer.IndexField) *handler.Funcs
- func (w *Type) WatchTLSSecret() *handler.Funcs
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextSecrets ¶
Types ¶
type CreateFunc ¶
type CreateFunc = func(context.Context, event.CreateEvent, workqueue.TypedRateLimitingInterface[reconcile.Request])
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new watch instance that can be used to trigger a reconciliation when a resource of interest is updated or created. The objectList parameter is used to determine the type of resources that should be reconciled on update or create events.
func (*Type) CreateFromLookup ¶
func (w *Type) CreateFromLookup(field indexer.IndexField) CreateFunc
CreateFromLookup creates an updater function that will trigger an update on all resources that are referencing the created object. The lookupField is the field that is used to lookup the resources. Note that this field *must* have been registered as a cache index in our main func (see main.go). This can be used to reconcile resources when have been created before their dependencies. For example, when an API is created before the management context it references.
func (*Type) UpdateFromLookup ¶
func (w *Type) UpdateFromLookup(field indexer.IndexField) UpdateFunc
UpdateFromLookup creates an updater function that will trigger an update on all resources that are referencing the updated object. The lookupField is the field that is used to lookup the resources. Note that this field *must* have been registered as a cache index in our main func (see main.go).
func (*Type) WatchApiTemplate ¶
WatchApiTemplate can be used to trigger a reconciliation when an API template is updated on resources that are depending on it. Right now this is only used for Ingress resources.
func (*Type) WatchContexts ¶
func (w *Type) WatchContexts(index indexer.IndexField) *handler.Funcs
WatchContexts can be used to trigger a reconciliation when a management context is updated on resources that should be synced with this context.
func (*Type) WatchResources ¶
func (w *Type) WatchResources(index indexer.IndexField) *handler.Funcs
WatchResources can be used to trigger a reconciliation when an API resource is updated on resources that are depending on it. Right now this is only used for API definitions.
func (*Type) WatchTLSSecret ¶
WatchTLSSecret can be used to trigger a reconciliation when an TLS secret is updated on resources that are depending on it. Right now this is only used for Ingress resources.
type UpdateFunc ¶
type UpdateFunc = func(context.Context, event.UpdateEvent, workqueue.TypedRateLimitingInterface[reconcile.Request])