Skip to content

Commit f34eda9

Browse files
Remove StatusOther
1 parent 73b1868 commit f34eda9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/validation/kubeconform.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package validation
33
import (
44
"context"
55

6+
log "github.com/sirupsen/logrus"
67
"github.com/yannh/kubeconform/pkg/validator"
78
)
89

@@ -62,6 +63,8 @@ func kStatusToStatus(kStatus validator.Status) Status {
6263
case validator.Empty:
6364
return StatusEmpty
6465
default:
65-
return StatusOther
66+
// This shouldn't happen
67+
log.Warnf("Got unexpected status from kubeconform: %+v", kStatus)
68+
return StatusEmpty
6669
}
6770
}

pkg/validation/result.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const (
99
StatusError Status = "error"
1010
StatusSkipped Status = "skipped"
1111
StatusEmpty Status = "empty"
12-
StatusOther Status = "other"
1312
)
1413

1514
// CheckType represents the type of check that has been done.

0 commit comments

Comments
 (0)