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

View File

@@ -1,3 +1,4 @@
//go:build linux
// +build linux
/*

View File

@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
/*

View File

@@ -1,3 +1,4 @@
//go:build linux
// +build linux
/*
@@ -24,7 +25,7 @@ import (
"os/exec"
"strings"
"github.com/blang/semver"
"github.com/blang/semver/v4"
"github.com/pkg/errors"
)

View File

@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
/*

View File

@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
/*
@@ -67,9 +68,12 @@ var DefaultSysSpec = SysSpec{
// The hugetlb cgroup is optional since some kernels are compiled without support for huge pages
// and therefore lacks corresponding hugetlb cgroup
"hugetlb",
// The blkio cgroup is optional since some kernels are compiled without support for block I/O throttling.
// Containerd and cri-o will use blkio to track disk I/O and throttling in both cgroup v1 and v2.
"blkio",
},
CgroupsV2: []string{"cpu", "cpuset", "devices", "freezer", "memory", "pids"},
CgroupsV2Optional: []string{"hugetlb"},
CgroupsV2Optional: []string{"hugetlb", "blkio"},
RuntimeSpec: RuntimeSpec{
DockerSpec: &DockerSpec{
Version: []string{`1\.1[1-3]\..*`, `17\.0[3,6,9]\..*`, `18\.0[6,9]\..*`, `19\.03\..*`, `20\.10\..*`},

View File

@@ -1,3 +1,4 @@
//go:build windows
// +build windows
/*