bump k8s.io/system-validators to v1.7.0

- add blkio as an optionally required cgroup
- update blang/semver to v4
- bump the min go version to 1.16
This commit is contained in:
Lubomir I. Ivanov
2022-03-24 19:08:28 +02:00
parent 11b3a18cca
commit fe7af1c68b
17 changed files with 1047 additions and 8 deletions

30
vendor/github.com/blang/semver/v4/sql.go generated vendored Normal file
View File

@@ -0,0 +1,30 @@
package semver
import (
"database/sql/driver"
"fmt"
)
// Scan implements the database/sql.Scanner interface.
func (v *Version) Scan(src interface{}) (err error) {
var str string
switch src := src.(type) {
case string:
str = src
case []byte:
str = string(src)
default:
return fmt.Errorf("version.Scan: cannot convert %T to string", src)
}
if t, err := Parse(str); err == nil {
*v = t
}
return
}
// Value implements the database/sql/driver.Valuer interface.
func (v Version) Value() (driver.Value, error) {
return v.String(), nil
}