Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type CertManager
- 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"
)
const (
// SCCAnnotation is the annotation listing SCCs for a SA
SCCAnnotation = "cdi-scc"
)
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 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