Skip to content

Commit

Permalink
forbid scheduling kube-system
Browse files Browse the repository at this point in the history
  • Loading branch information
akyriako committed May 28, 2024
1 parent c65af5f commit 93b2b60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/sleepcycle_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ func (r *SleepCycleReconciler) Reconcile(ctx context.Context, req ctrl.Request)

r.logger.Info("reconciling sleepcycle")

nsks := "kube-system"
if req.Namespace == nsks {
r.logger.Info(fmt.Sprintf("setting sleepcycle schedule on resources in namespace %s is not supported", nsks))
return ctrl.Result{}, nil
}

provisioned := 0
total := 0

Expand Down

0 comments on commit 93b2b60

Please sign in to comment.