Documentation
¶
Index ¶
- Constants
- Variables
- func IsSNRMatching(ctx context.Context, c client.Client, snr *v1alpha1.SelfNodeRemediation, ...) (bool, string, error)
- type SelfNodeRemediationConfigReconciler
- type SelfNodeRemediationReconciler
- func (r *SelfNodeRemediationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (returnResult ctrl.Result, returnErr error)
- func (r *SelfNodeRemediationReconciler) ReconcileAgent(ctx context.Context, req ctrl.Request) (returnResult ctrl.Result, returnErr error)
- func (r *SelfNodeRemediationReconciler) ReconcileManager(ctx context.Context, req ctrl.Request) (returnResult ctrl.Result, returnErr error)
- func (r *SelfNodeRemediationReconciler) SetupWithManager(mgr ctrl.Manager) error
- type UnreconcilableError
Constants ¶
View Source
const (
SNRFinalizer = "self-node-remediation.medik8s.io/snr-finalizer"
)
Variables ¶
View Source
var ( NodeNoScheduleTaint = &corev1.Taint{ Key: "remediation.medik8s.io/self-node-remediation", Effect: corev1.TaintEffectNoSchedule, } OutOfServiceTaint = &corev1.Taint{ Key: corev1.TaintNodeOutOfService, Value: "nodeshutdown", Effect: corev1.TaintEffectNoExecute, } // OutOfServiceTimeoutDuration - time after which out-of-service taint is automatically removed OutOfServiceTimeoutDuration = 1 * time.Minute )
Functions ¶
func IsSNRMatching ¶ added in v0.10.0
func IsSNRMatching(ctx context.Context, c client.Client, snr *v1alpha1.SelfNodeRemediation, nodeName string, machineName string, log logr.Logger) (bool, string, error)
IsSNRMatching checks if the SNR CR is matching the node or machine name, and additionally returns the node name for the SNR in case machineName is empty
Types ¶
type SelfNodeRemediationConfigReconciler ¶
type SelfNodeRemediationConfigReconciler struct {
client.Client
Cache cache.Cache
Log logr.Logger
Scheme *runtime.Scheme
InstallFileFolder string
Namespace string
RebootDurationCalculator reboot.Calculator
}
SelfNodeRemediationConfigReconciler reconciles a SelfNodeRemediationConfig object
func (*SelfNodeRemediationConfigReconciler) SetupWithManager ¶
func (r *SelfNodeRemediationConfigReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SelfNodeRemediationReconciler ¶
type SelfNodeRemediationReconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
Recorder record.EventRecorder
Rebooter reboot.Rebooter
RebootDurationCalculator reboot.Calculator
MyNodeName string
MyNamespace string
IsAgent bool
// contains filtered or unexported fields
}
SelfNodeRemediationReconciler reconciles a SelfNodeRemediation object
func (*SelfNodeRemediationReconciler) ReconcileAgent ¶ added in v0.9.0
func (*SelfNodeRemediationReconciler) ReconcileManager ¶ added in v0.9.0
func (*SelfNodeRemediationReconciler) SetupWithManager ¶
func (r *SelfNodeRemediationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type UnreconcilableError ¶
type UnreconcilableError struct {
// contains filtered or unexported fields
}
func (*UnreconcilableError) Error ¶
func (e *UnreconcilableError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.