Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type CertManager
- type Customizer
- func (c *Customizer) Apply(objects []client.Object) error
- func (c *Customizer) GenericApplyPatches(objects interface{}) error
- func (c *Customizer) GetPatches() []v1beta1.CustomizeComponentsPatch
- func (c *Customizer) GetPatchesForResource(resourceType, name string) []v1beta1.CustomizeComponentsPatch
- func (c *Customizer) Hash() string
- type ReconcileCDI
- func (r *ReconcileCDI) Create() client.Object
- func (r *ReconcileCDI) GetAllResources(crObject client.Object) ([]client.Object, error)
- func (r *ReconcileCDI) GetDependantResourcesListObjects() []client.ObjectList
- func (r *ReconcileCDI) IsCreating(_ client.Object) (bool, error)
- func (r *ReconcileCDI) Reconcile(_ context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileCDI) SetController(controller controller.Controller)
- func (r *ReconcileCDI) Status(cr client.Object) *sdkapi.Status
Constants ¶
const (
// LastAppliedConfigAnnotation is the annotation that holds the last resource state which we put on resources under our governance
LastAppliedConfigAnnotation = "operator.cdi.kubevirt.io/lastAppliedConfiguration"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CertManager ¶ added in v1.13.0
type CertManager interface {
Sync(certs []cdicerts.CertificateDefinition) error
}
CertManager is the client interface to the certificate manager/refresher
func NewCertManager ¶ added in v1.13.0
func NewCertManager(mgr manager.Manager, installNamespace string, additionalNamespaces ...string) (CertManager, error)
NewCertManager creates a new certificate manager/refresher
type Customizer ¶ added in v1.59.0
type Customizer struct { Patches []v1beta1.CustomizeComponentsPatch // contains filtered or unexported fields }
The Customizer structure is used for customizing components with a collection of patches. It includes an array of CustomizeComponentsPatch, along with a hash value. The Apply method allows applying these patches to a group of objects.
func NewCustomizer ¶ added in v1.59.0
func NewCustomizer(customizations v1beta1.CustomizeComponents) (*Customizer, error)
NewCustomizer returns a new Customizer.
func (*Customizer) Apply ¶ added in v1.59.0
func (c *Customizer) Apply(objects []client.Object) error
Apply applies all patches to the slice of objects.
func (*Customizer) GenericApplyPatches ¶ added in v1.59.0
func (c *Customizer) GenericApplyPatches(objects interface{}) error
GenericApplyPatches applies patches to a slice of resources.
func (*Customizer) GetPatches ¶ added in v1.59.0
func (c *Customizer) GetPatches() []v1beta1.CustomizeComponentsPatch
GetPatches provides slice of patches.
func (*Customizer) GetPatchesForResource ¶ added in v1.59.0
func (c *Customizer) GetPatchesForResource(resourceType, name string) []v1beta1.CustomizeComponentsPatch
GetPatchesForResource provides slice of patches for specific resource.
func (*Customizer) Hash ¶ added in v1.59.0
func (c *Customizer) Hash() string
Hash provides the hash of the patches.
type ReconcileCDI ¶
type ReconcileCDI struct {
// contains filtered or unexported fields
}
ReconcileCDI reconciles a CDI object
func (*ReconcileCDI) Create ¶ added in v1.24.0
func (r *ReconcileCDI) Create() client.Object
Create creates new CDI resource
func (*ReconcileCDI) GetAllResources ¶ added in v1.24.0
GetAllResources provides slice of resources CDI depends on
func (*ReconcileCDI) GetDependantResourcesListObjects ¶ added in v1.24.0
func (r *ReconcileCDI) GetDependantResourcesListObjects() []client.ObjectList
GetDependantResourcesListObjects provides slice of List resources corresponding to CDI-dependant resource types
func (*ReconcileCDI) IsCreating ¶ added in v1.24.0
func (r *ReconcileCDI) IsCreating(_ client.Object) (bool, error)
IsCreating checks whether operator config is missing (which means it is create-type reconciliation)
func (*ReconcileCDI) Reconcile ¶
func (r *ReconcileCDI) Reconcile(_ context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a CDI object and makes changes based on the state read and what is in the CDI.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*ReconcileCDI) SetController ¶ added in v1.24.0
func (r *ReconcileCDI) SetController(controller controller.Controller)
SetController sets the controller dependency