cleanup things

Signed-off-by: Frank Villaro-Dixon <frank.villarodixon@merkle.com>
This commit is contained in:
Frank Villaro-Dixon 2023-06-12 10:52:15 +02:00
parent f25e15411c
commit 7a8457b300

View file

@ -100,10 +100,6 @@ func isNodeAlive(lastLeaseTime *time.Time) bool {
return true return true
} }
func s(s string) *string {
return &s
}
func jobLabels(node *anesthesiav1alpha1.AnesthesiaNode) map[string]string { func jobLabels(node *anesthesiav1alpha1.AnesthesiaNode) map[string]string {
return map[string]string{ return map[string]string{
"anesthesia.k3s.fr/node": node.Name, "anesthesia.k3s.fr/node": node.Name,
@ -494,11 +490,6 @@ func (r *AnesthesiaNodeReconciler) Reconcile(ctx context.Context, req ctrl.Reque
var node anesthesiav1alpha1.AnesthesiaNode var node anesthesiav1alpha1.AnesthesiaNode
if req.Name != "think02" {
return ctrl.Result{}, nil
}
fmt.Printf("\n\n\nHALLO, I was launched !!!\n\n")
if err := r.Get(ctx, req.NamespacedName, &node); err != nil { if err := r.Get(ctx, req.NamespacedName, &node); err != nil {
log.Error(err, "Could not get AnesthesiaNode") log.Error(err, "Could not get AnesthesiaNode")
return ctrl.Result{}, client.IgnoreNotFound(err) return ctrl.Result{}, client.IgnoreNotFound(err)