Documentation
¶
Index ¶
- Constants
- func FindNodeStatusCondition(conditions []corev1.NodeCondition, conditionType corev1.NodeConditionType) *corev1.NodeCondition
- func HasKubectlManagedFields(object *metav1.ObjectMeta) bool
- func InstanceHaUrl(region, zone, hostname string) string
- func IsNodeConditionPresentAndEqual(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 HypervisorInstanceHaController
- type HypervisorMaintenanceController
- type HypervisorOffboardingReconciler
- type HypervisorTaintController
- type NodeCertificateController
- type OnboardingController
- type TraitsController
Constants ¶
const (
AggregatesControllerName = "aggregates"
)
const (
EvictionControllerName = "eviction"
)
const (
HypervisorControllerName = "hypervisor"
)
const (
HypervisorInstanceHaControllerName = "HypervisorInstanceHa"
)
const (
HypervisorMaintenanceControllerName = "HypervisorMaintenance"
)
const (
HypervisorTaintControllerName = "HypervisorTaint"
)
const (
MaintenanceControllerName = "maintenance"
)
const (
NodeCertificateControllerName = "certificate"
)
const (
OffboardingControllerName = "offboarding"
)
const (
OnboardingControllerName = "onboarding"
)
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 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 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 HypervisorInstanceHaController ¶
func (*HypervisorInstanceHaController) Reconcile ¶
func (r *HypervisorInstanceHaController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+kubebuilder:rbac:groups=kvm.cloud.sap,resources=hypervisors,verbs=get;list;watch;update;patch +kubebuilder:rbac:groups=kvm.cloud.sap,resources=hypervisors/status,verbs=get;list;watch;update;patch
func (*HypervisorInstanceHaController) SetupWithManager ¶
func (r *HypervisorInstanceHaController) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type HypervisorMaintenanceController ¶
type HypervisorMaintenanceController struct {
k8sclient.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
func (*HypervisorMaintenanceController) Reconcile ¶
func (hec *HypervisorMaintenanceController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+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
func (r *HypervisorOffboardingReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
+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 ¶
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 ¶
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 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) SetupWithManager ¶
func (tc *TraitsController) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
- aggregates_controller.go
- constants.go
- eviction_controller.go
- gardener_node_lifecycle_controller.go
- hypervisor_controller.go
- hypervisor_instance_ha_controller.go
- hypervisor_maintenance_controller.go
- hypervisor_taint_controller.go
- node_certificate_controller.go
- offboarding_controller.go
- onboarding_controller.go
- traits_controller.go
- utils.go