Documentation ¶
Index ¶
Constants ¶
const ( // We cannot set owner reference of cluster-wide resources to namespaced HyperConverged object. Therefore, // use finalizers to manage the cleanup. FinalizerName = "kubevirt.io/hyperconverged" )
Variables ¶
var JSONPatchAnnotationNames = []string{ common.JSONPatchKVAnnotationName, common.JSONPatchCDIAnnotationName, common.JSONPatchCNAOAnnotationName, }
JSONPatchAnnotationNames - annotations used to patch operand CRs with unsupported/unofficial/hidden features. The presence of any of these annotations raises the hcov1beta1.ConditionTaintedConfiguration condition.
Functions ¶
func RegisterReconciler ¶ added in v1.4.0
func RegisterReconciler(mgr manager.Manager, ci hcoutil.ClusterInfo) error
RegisterReconciler creates a new HyperConverged Reconciler and registers it into manager.
Types ¶
type ReconcileHyperConverged ¶
type ReconcileHyperConverged struct {
// contains filtered or unexported fields
}
ReconcileHyperConverged reconciles a HyperConverged object
func (*ReconcileHyperConverged) EnsureOperandAndComplete ¶ added in v1.4.0
func (r *ReconcileHyperConverged) EnsureOperandAndComplete(req *common.HcoRequest, init bool) (reconcile.Result, error)
func (*ReconcileHyperConverged) Reconcile ¶
func (r *ReconcileHyperConverged) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a HyperConverged object and makes changes based on the state read and what is in the HyperConverged.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.