Skip to content

Commit

Permalink
Remove StatusOther
Browse files Browse the repository at this point in the history
  • Loading branch information
yolken-segment committed Apr 9, 2021
1 parent 73b1868 commit f34eda9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/validation/kubeconform.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package validation
import (
"context"

log "github.com/sirupsen/logrus"
"github.com/yannh/kubeconform/pkg/validator"
)

Expand Down Expand Up @@ -62,6 +63,8 @@ func kStatusToStatus(kStatus validator.Status) Status {
case validator.Empty:
return StatusEmpty
default:
return StatusOther
// This shouldn't happen
log.Warnf("Got unexpected status from kubeconform: %+v", kStatus)
return StatusEmpty
}
}
1 change: 0 additions & 1 deletion pkg/validation/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const (
StatusError Status = "error"
StatusSkipped Status = "skipped"
StatusEmpty Status = "empty"
StatusOther Status = "other"
)

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

0 comments on commit f34eda9

Please sign in to comment.