Skip to content

Commit

Permalink
Fix minor spelling errors (#173)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Ekenstam <[email protected]>
  • Loading branch information
tekenstam committed Sep 23, 2023
1 parent d93dc7b commit c2429f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions controllers/healthcheck_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ import (
"context"
"errors"
"fmt"
"k8s.io/client-go/util/retry"
"strings"
"sync"
"time"

"k8s.io/client-go/util/retry"

"k8s.io/client-go/tools/record"
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/manager"
Expand Down Expand Up @@ -211,7 +212,7 @@ func (r *HealthCheckReconciler) processHealthCheck(ctx context.Context, log logr
log.Error(err, "fail to parse cron")
r.Recorder.Event(healthCheck, v1.EventTypeWarning, "Warning", "Fail to parse cron")
}
// The value from schedule next and substracting from current time is in fraction as we convert to int it will be 1 less than
// The value from schedule next and subtracting from current time is in fraction as we convert to int it will be 1 less than
// the intended reschedule so we need to add 1sec to get the actual value
// we need to update the spec so have to healthCheck.Spec.RepeatAfterSec instead of local variable hcSpec
healthCheck.Spec.RepeatAfterSec = int(schedule.Next(time.Now()).Sub(time.Now())/time.Second) + 1
Expand Down Expand Up @@ -728,7 +729,7 @@ func (r *HealthCheckReconciler) watchRemedyWorkflow(ctx context.Context, req ctr
if ok {
log.Info("Remedy workflow status", "status", status["phase"])
if status["phase"] == succStr {
r.Recorder.Event(hc, v1.EventTypeNormal, "Normal", "Remedy workflow status is Succceeded")
r.Recorder.Event(hc, v1.EventTypeNormal, "Normal", "Remedy workflow status is Succeeded")
hc.Status.RemedyStatus = succStr
hc.Status.RemedyStartedAt = &then
hc.Status.RemedyFinishedAt = &now
Expand Down

0 comments on commit c2429f2

Please sign in to comment.