controller

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL