Skip to content

Commit

Permalink
chore: change one check in sleepinfo cont
Browse files Browse the repository at this point in the history
  • Loading branch information
Furkan Berber committed Apr 26, 2024
1 parent 0e93928 commit 278da99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/controller/sleepinfo/sleepinfo_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ func (r *SleepInfoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
}
}

logMsg := "deployments and cronjobs not present in namespace"
if !sleepInfo.IsCronjobsToSuspend() && !sleepInfo.IsDeploymentsToSuspend() {
logMsg = "deployments and cronjobs are not to suspend"
logMsg := "deployments, statefulsets and cronjobs not present in namespace"
if !sleepInfo.IsCronjobsToSuspend() && !sleepInfo.IsDeploymentsToSuspend() && !sleepInfo.IsStatefulSetsToSuspend() {
logMsg = "deployments, statefulsets and cronjobs are not to suspend"
}
log.WithValues("requeueAfter", requeueAfter).Info(logMsg)

Expand Down

0 comments on commit 278da99

Please sign in to comment.