Skip to content

Commit

Permalink
fix: cron job health check
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed May 1, 2024
1 parent edf5965 commit 0301a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/health/health_cronjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func getCronJobHealth(obj *unstructured.Unstructured) (*HealthStatus, error) {
gvk := obj.GroupVersionKind()
switch gvk {
case batchv1.SchemeGroupVersion.WithKind(JobKind):
case batchv1.SchemeGroupVersion.WithKind(CronJobKind):
var job batchv1.CronJob
err := runtime.DefaultUnstructuredConverter.FromUnstructured(obj.Object, &job)
if err != nil {
Expand Down

0 comments on commit 0301a69

Please sign in to comment.