Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReconcileCompleted = "ReconcileCompleted" ReconcileCompletedMessage = "Reconcile completed successfully" // JSONPatch annotation names JSONPatchKVAnnotationName = "kubevirt.kubevirt.io/jsonpatch" JSONPatchCDIAnnotationName = "containerizeddataimporter.kubevirt.io/jsonpatch" JSONPatchCNAOAnnotationName = "networkaddonsconfigs.kubevirt.io/jsonpatch" )
Variables ¶
View Source
var ( HcoConditionTypes = []conditionsv1.ConditionType{ hcov1beta1.ConditionReconcileComplete, conditionsv1.ConditionAvailable, conditionsv1.ConditionProgressing, conditionsv1.ConditionDegraded, conditionsv1.ConditionUpgradeable, } )
Functions ¶
This section is empty.
Types ¶
type HcoConditions ¶
type HcoConditions map[conditionsv1.ConditionType]conditionsv1.Condition
func NewHcoConditions ¶
func NewHcoConditions() HcoConditions
func (HcoConditions) HasCondition ¶ added in v1.4.0
func (hc HcoConditions) HasCondition(conditionType conditionsv1.ConditionType) bool
func (HcoConditions) IsEmpty ¶ added in v1.4.0
func (hc HcoConditions) IsEmpty() bool
func (HcoConditions) SetStatusCondition ¶
func (hc HcoConditions) SetStatusCondition(newCondition conditionsv1.Condition)
func (HcoConditions) SetStatusConditionIfUnset ¶ added in v1.4.0
func (hc HcoConditions) SetStatusConditionIfUnset(newCondition conditionsv1.Condition)
type HcoRequest ¶
type HcoRequest struct { reconcile.Request // inheritance of operator request Logger logr.Logger // request logger Conditions HcoConditions // in-memory conditions Ctx context.Context // context of this request, to be use for any other call Instance *hcov1beta1.HyperConverged // the current state of the CR, as read from K8s UpgradeMode bool // copy of the reconciler upgrade mode ComponentUpgradeInProgress bool // if in upgrade mode, accumulate the component upgrade status Dirty bool // is something was changed in the CR StatusDirty bool // is something was changed in the CR's Status HCOTriggered bool // if the request got triggered by a direct modification on HCO CR }
hcoRequest - gather data for a specific request
func NewHcoRequest ¶
func (*HcoRequest) SetUpgradeMode ¶
func (req *HcoRequest) SetUpgradeMode(upgradeMode bool)
Click to show internal directories.
Click to hide internal directories.