Documentation
¶
Index ¶
- Constants
- Variables
- type HcoConditions
- func (hc HcoConditions) GetCondition(conditionType string) (metav1.Condition, bool)
- func (hc HcoConditions) HasCondition(conditionType string) bool
- func (hc HcoConditions) IsEmpty() bool
- func (hc HcoConditions) IsStatusConditionTrue(conditionType string) bool
- func (hc HcoConditions) SetStatusCondition(newCondition metav1.Condition)
- func (hc HcoConditions) SetStatusConditionIfUnset(newCondition metav1.Condition)
- type HcoRequest
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" JSONPatchSSPAnnotationName = "ssp.kubevirt.io/jsonpatch" // Tuning Policy annotation name TuningPolicyAnnotationName = util.HCOAnnotationPrefix + "tuningPolicy" )
Variables ¶
View Source
var ( HcoConditionTypes = []string{ hcov1beta1.ConditionReconcileComplete, hcov1beta1.ConditionAvailable, hcov1beta1.ConditionProgressing, hcov1beta1.ConditionDegraded, hcov1beta1.ConditionUpgradeable, } )
View Source
var ShouldDeployNetworkPolicy = func() bool {
return deployNetworkPolicy
}
Functions ¶
This section is empty.
Types ¶
type HcoConditions ¶
func NewHcoConditions ¶
func NewHcoConditions() HcoConditions
func (HcoConditions) GetCondition ¶
func (hc HcoConditions) GetCondition(conditionType string) (metav1.Condition, bool)
func (HcoConditions) HasCondition ¶
func (hc HcoConditions) HasCondition(conditionType string) bool
func (HcoConditions) IsEmpty ¶
func (hc HcoConditions) IsEmpty() bool
func (HcoConditions) IsStatusConditionTrue ¶ added in v1.9.0
func (hc HcoConditions) IsStatusConditionTrue(conditionType string) bool
func (HcoConditions) SetStatusCondition ¶
func (hc HcoConditions) SetStatusCondition(newCondition metav1.Condition)
func (HcoConditions) SetStatusConditionIfUnset ¶
func (hc HcoConditions) SetStatusConditionIfUnset(newCondition metav1.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
Upgradeable bool // if all the operands are upgradeable
}
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.