Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandlerFactory ¶
type Index ¶
Index describes an index registration. See controller-runtime mgr.GetFieldIndexer().IndexField() for more details.
type KnownType ¶ added in v2.13.0
type KnownType struct {
// Obj is the object for which the webhook should be registered
Obj client.Object
// Validator defines the checks performed by a validating webhook
Validator webhook.CustomValidator
// Default defines the checks performed by a mutating webhook
Defaulter webhook.CustomDefaulter
}
KnownType describes a type "known" by the operator. It includes the Obj as well as validating and defaulting webhooks associated with that particular obj (== GVK)
type StorageType ¶
type StorageType struct {
// Obj is the object whose Kind should be registered as the storage type.
Obj client.Object
// Indexes are additional indexes which must be set up in client-go for this type. These indexes will
// be used by the reconciliation loop for this resource.
Indexes []Index
// Watches are additional event sources that trigger the reconciliation process. This is commonly
// used when multiple resources in Kubernetes combine to work together. For example, when a
// database takes a Kubernetes secret as an input, that secret must also be watched in addition
// to the database itself, so that changes to the secret are correctly propagated.
Watches []Watch
// Reconciler is the reconciler instance for resources of this type.
Reconciler genruntime.Reconciler
// Predicate determines which events trigger reconciliation for this type
Predicate predicate.Predicate
// Name is the friendly name of this storage type
Name string
}
StorageType describes a storage type which will be reconciled.
func NewStorageType ¶
func NewStorageType(obj client.Object) *StorageType
NewStorageType makes a new storage type for the specified object
type Watch ¶
type Watch struct {
Type client.Object
MakeEventHandler EventHandlerFactory
}
Watch describes a watch registration. See controller-runtime builder.Watches() for more details.
Click to show internal directories.
Click to hide internal directories.