Documentation
¶
Index ¶
- Constants
- func SetAMIComplianceCondition(conditions *[]metav1.Condition, status metav1.ConditionStatus, ...)
- func SetCondition(conditions *[]metav1.Condition, conditionType string, ...)
- func SetUpgradeCondition(conditions *[]metav1.Condition, status metav1.ConditionStatus, ...)
- type NodeGroupUpgradePolicyReconciler
Constants ¶
const ( UpgradeStatusFailed = "Failed" UpgradeStatusInProgress = "InProgress" UpgradeStatusSucceeded = "Succeeded" UpgradeStatusOutdated = "Outdated" UpgradeStatusSkipped = "Skipped" )
Variables ¶
This section is empty.
Functions ¶
func SetAMIComplianceCondition ¶
func SetAMIComplianceCondition(conditions *[]metav1.Condition, status metav1.ConditionStatus, reason, message string)
Convenience wrapper for AMICompliance condition
func SetCondition ¶
func SetCondition(conditions *[]metav1.Condition, conditionType string, status metav1.ConditionStatus, reason, message string)
SetCondition updates or adds a condition of the given type
func SetUpgradeCondition ¶
func SetUpgradeCondition(conditions *[]metav1.Condition, status metav1.ConditionStatus, reason, message string)
Convenience wrapper for UpgradeInProgress condition
Types ¶
type NodeGroupUpgradePolicyReconciler ¶
type NodeGroupUpgradePolicyReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
}
NodeGroupUpgradePolicyReconciler reconciles a NodeGroupUpgradePolicy object
func (*NodeGroupUpgradePolicyReconciler) Reconcile ¶
func (r *NodeGroupUpgradePolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NodeGroupUpgradePolicy object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.22.1/pkg/reconcile
func (*NodeGroupUpgradePolicyReconciler) SetupWithManager ¶
func (r *NodeGroupUpgradePolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.