makocchi-git/kubectl-free

View on GitHub
pkg/util/validation.go

Summary

Maintainability
A
0 mins
Test Coverage
package util

import (
    "fmt"
)

func ValidateThreshold(w, c int64) error {
    if w > c {
        return fmt.Errorf(
            "can not set critical threshold less than warn threshold (warn:%d crit:%d)", w, c,
        )
    }

    return nil
}