controller

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 58 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// MaintenanceLabelKey is the label key applied to Deployments and
	// PodDisruptionBudgets owned by the maintenance controller.
	MaintenanceLabelKey = "cobaltcore-maintenance-controller"
	// MaintenanceNamespace is the namespace where the maintenance controller
	// creates its Deployments and PodDisruptionBudgets.
	MaintenanceNamespace = "kube-system"
)

This should contain constants shared between controllers

View Source
const (
	AggregatesControllerName = "aggregates"
)
View Source
const (
	HypervisorControllerName = "hypervisor"
)
View Source
const (
	HypervisorMaintenanceControllerName = "HypervisorMaintenance"
)
View Source
const (
	HypervisorTaintControllerName = "HypervisorTaint"
)
View Source
const (
	MaintenanceControllerName = "maintenance"
)
View Source
const (
	NodeCertificateControllerName = "certificate"
)
View Source
const (
	OffboardingControllerName = "offboarding"
)
View Source
const (
	OnboardingControllerName = "onboarding"
)
View Source
const (
	TraitsControllerName = "traits"
)

Variables

This section is empty.

Functions

func FindNodeStatusCondition

func FindNodeStatusCondition(conditions []corev1.NodeCondition, conditionType corev1.NodeConditionType) *corev1.NodeCondition

FindNodeStatusCondition returns the condition of the given type if it exists. Note: Returns a pointer into the original slice element, not a copy.

func HasKubectlManagedFields

func HasKubectlManagedFields(object *metav1.ObjectMeta) bool

returns if any ManagedField of the object has been modified by kubectl

func IsNodeConditionPresentAndEqual

func IsNodeConditionPresentAndEqual(conditions []corev1.NodeCondition, conditionType corev1.NodeConditionType, status corev1.ConditionStatus) bool

IsNodeConditionPresentAndEqual returns true when conditionType is present and equal to status.

func OwnerReference

returns a OwnerReference for the given object and groupversionkind info as returned by apiutil.GVKForObject

Types

type AggregatesController

type AggregatesController struct {
	k8sclient.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*AggregatesController) Reconcile

func (ac *AggregatesController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AggregatesController) SetupWithManager

func (ac *AggregatesController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type GardenerNodeLifecycleController

type GardenerNodeLifecycleController struct {
	k8sclient.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*GardenerNodeLifecycleController) Reconcile

func (*GardenerNodeLifecycleController) SetupWithManager

func (r *GardenerNodeLifecycleController) SetupWithManager(mgr ctrl.Manager, namespace string) error

SetupWithManager sets up the controller with the Manager.

type HypervisorController

type HypervisorController struct {
	k8sclient.Client
	Scheme *runtime.Scheme
}

func (*HypervisorController) Reconcile

func (hv *HypervisorController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*HypervisorController) SetupWithManager

func (hv *HypervisorController) SetupWithManager(mgr ctrl.Manager) error

type HypervisorMaintenanceController

type HypervisorMaintenanceController struct {
	k8sclient.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*HypervisorMaintenanceController) Reconcile

+kubebuilder:rbac:groups=kvm.cloud.sap,resources=hypervisors,verbs=get;list;watch +kubebuilder:rbac:groups=kvm.cloud.sap,resources=hypervisors/status,verbs=get;update;patch +kubebuilder:rbac:groups=kvm.cloud.sap,resources=evictions,verbs=get;list;watch;create;update;patch;delete

func (*HypervisorMaintenanceController) SetupWithManager

func (hec *HypervisorMaintenanceController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type HypervisorOffboardingReconciler added in v1.1.0

type HypervisorOffboardingReconciler struct {
	k8sclient.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*HypervisorOffboardingReconciler) Reconcile added in v1.1.0

+kubebuilder:rbac:groups=kvm.cloud.sap,resources=hypervisors,verbs=get;list;watch +kubebuilder:rbac:groups=kvm.cloud.sap,resources=hypervisors/status,verbs=get;list;watch;update;patch

func (*HypervisorOffboardingReconciler) SetupWithManager added in v1.1.0

func (r *HypervisorOffboardingReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type HypervisorTaintController

type HypervisorTaintController struct {
	k8sclient.Client
	Scheme *runtime.Scheme
}

func (*HypervisorTaintController) Reconcile

func (*HypervisorTaintController) SetupWithManager

func (r *HypervisorTaintController) SetupWithManager(mgr ctrl.Manager) error

type NodeCertificateController

type NodeCertificateController struct {
	k8sclient.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*NodeCertificateController) 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.

func (*NodeCertificateController) SetupWithManager

func (r *NodeCertificateController) SetupWithManager(
	mgr ctrl.Manager, namespace, issuerName, interfaceIncludeRegex, interfaceExcludeRegex string,
) error

SetupWithManager sets up the controller with the Manager.

type OnboardingController

type OnboardingController struct {
	k8sclient.Client
	Scheme       *runtime.Scheme
	TestFlavorID string
	Clock        clock.Clock
	// contains filtered or unexported fields
}

func (*OnboardingController) Reconcile

func (r *OnboardingController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=kvm.cloud.sap,resources=hypervisors,verbs=get;list;watch;patch +kubebuilder:rbac:groups=kvm.cloud.sap,resources=hypervisors/status,verbs=get;list;watch;patch

func (*OnboardingController) SetupWithManager

func (r *OnboardingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type TraitsController

type TraitsController struct {
	k8sclient.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

func (*TraitsController) Reconcile

func (tc *TraitsController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TraitsController) SetupWithManager

func (tc *TraitsController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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