Documentation
¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type CertManager
- type ReconcileCDI
- func (r *ReconcileCDI) Create() controllerutil.Object
- func (r *ReconcileCDI) GetAllResources(crObject runtime.Object) ([]runtime.Object, error)
- func (r *ReconcileCDI) GetDependantResourcesListObjects() []runtime.Object
- func (r *ReconcileCDI) IsCreating(_ controllerutil.Object) (bool, error)
- func (r *ReconcileCDI) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileCDI) SetController(controller controller.Controller)
- func (r *ReconcileCDI) Status(cr runtime.Object) *sdkapi.Status
Constants ¶
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() controllerutil.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() []runtime.Object
GetDependantResourcesListObjects provides slice of List resources corresponding to CDI-dependant resource types
func (*ReconcileCDI) IsCreating ¶ added in v1.24.0
func (r *ReconcileCDI) IsCreating(_ controllerutil.Object) (bool, error)
IsCreating checks whether operator config is missing (which means it is create-type reconciliation)
func (*ReconcileCDI) Reconcile ¶
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