Documentation
¶
Index ¶
- Constants
- Variables
- func Difference[S ~[]E, E comparable](s1, s2 S) S
- func FindNodeStatusCondition(conditions []corev1.NodeCondition, conditionType corev1.NodeConditionType) *corev1.NodeCondition
- func HasStatusCondition(conditions []metav1.Condition, conditionType string) bool
- func InstanceHaUrl(region, zone, hostname string) string
- func IsNodeConditionPresentAndEqual(conditions []corev1.NodeCondition, conditionType corev1.NodeConditionType, ...) bool
- func IsNodeConditionTrue(conditions []corev1.NodeCondition, conditionType corev1.NodeConditionType) bool
- func OwnerReference(obj metav1.Object, gvk *schema.GroupVersionKind) *v1ac.OwnerReferenceApplyConfiguration
- type AggregatesController
- type EvictionReconciler
- type GardenerNodeLifecycleController
- type HypervisorController
- type HypervisorMaintenanceController
- type NodeCertificateController
- type NodeDecommissionReconciler
- type NodeEvictionLabelReconciler
- type OnboardingController
- type TraitsController
Constants ¶
const ( ConditionTypeAggregatesUpdated = "AggregatesUpdated" ConditionAggregatesSuccess = "Success" ConditionAggregatesFailed = "Failed" AggregatesControllerName = "aggregates" )
const ( ConditionTypeOnboarding = "Onboarding" ConditionReasonInitial = "initial" ConditionReasonOnboarding = "onboarding" ConditionReasonTesting = "testing" ConditionReasonCompleted = "completed" OnboardingControllerName = "onboarding" )
const ( ConditionTypeTraitsUpdated = "TraitsUpdated" ConditionTraitsSuccess = "Success" ConditionTraitsFailed = "Failed" TraitsControllerName = "traits" )
const (
DecommissionControllerName = "nodeDecommission"
)
const (
EvictionControllerName = "eviction"
)
const (
HypervisorControllerName = "hypervisor"
)
const (
HypervisorMaintenanceControllerName = "HypervisorMaintenance"
)
const (
MaintenanceControllerName = "maintenance"
)
const (
NodeCertificateControllerName = "certificate"
)
const (
NodeEvictionLabelControllerName = "nodeEvictionLabel"
)
Variables ¶
var ErrRetry = errors.New("ErrRetry")
Functions ¶
func Difference ¶
func Difference[S ~[]E, E comparable](s1, s2 S) S
returns all elements in b not in a
func FindNodeStatusCondition ¶
func FindNodeStatusCondition(conditions []corev1.NodeCondition, conditionType corev1.NodeConditionType) *corev1.NodeCondition
FindNodeStatusCondition returns the condition of the given type if it exists.
func HasStatusCondition ¶
func InstanceHaUrl ¶
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 IsNodeConditionTrue ¶
func IsNodeConditionTrue(conditions []corev1.NodeCondition, conditionType corev1.NodeConditionType) bool
IsNodeConditionTrue returns true when the conditionType is present and set to `corev1.ConditionTrue`
func OwnerReference ¶
func OwnerReference(obj metav1.Object, gvk *schema.GroupVersionKind) *v1ac.OwnerReferenceApplyConfiguration
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) SetupWithManager ¶
func (ac *AggregatesController) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type EvictionReconciler ¶
type EvictionReconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
EvictionReconciler reconciles a Eviction object
func (*EvictionReconciler) 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 (*EvictionReconciler) SetupWithManager ¶
func (r *EvictionReconciler) 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) SetupWithManager ¶
func (r *GardenerNodeLifecycleController) SetupWithManager(mgr ctrl.Manager, namespace string) error
SetupWithManager sets up the controller with the Manager.
type HypervisorController ¶
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) SetupWithManager ¶
func (hec *HypervisorMaintenanceController) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NodeCertificateController ¶
type NodeCertificateController struct {
k8sclient.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
func (*NodeCertificateController) Reconcile ¶
func (r *NodeCertificateController) 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.
func (*NodeCertificateController) SetupWithManager ¶
func (r *NodeCertificateController) SetupWithManager(mgr ctrl.Manager, namespace, issuerName string) error
SetupWithManager sets up the controller with the Manager.
type NodeDecommissionReconciler ¶
type NodeDecommissionReconciler struct {
k8sclient.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
func (*NodeDecommissionReconciler) Reconcile ¶
func (r *NodeDecommissionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+kubebuilder:rbac:groups="",resources=nodes,verbs=get;list;watch;patch;update +kubebuilder:rbac:groups="",resources=nodes/finalizers,verbs=update +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 (*NodeDecommissionReconciler) SetupWithManager ¶
func (r *NodeDecommissionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NodeEvictionLabelReconciler ¶
func (*NodeEvictionLabelReconciler) SetupWithManager ¶
func (r *NodeEvictionLabelReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OnboardingController ¶
type OnboardingController struct {
k8sclient.Client
Scheme *runtime.Scheme
// 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
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) SetupWithManager ¶
func (tc *TraitsController) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.