@@ -20,6 +20,7 @@ import (
20
20
"context"
21
21
22
22
"k8s.io/api/core/v1"
23
+ "k8s.io/apimachinery/pkg/types"
23
24
"k8s.io/apimachinery/pkg/util/sets"
24
25
internalapi "k8s.io/cri-api/pkg/apis"
25
26
runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
@@ -28,6 +29,16 @@ import (
28
29
evictionapi "k8s.io/kubernetes/pkg/kubelet/eviction/api"
29
30
)
30
31
32
+ // for typecheck across platforms
33
+ var _ func (int64 , int64 ) int64 = MilliCPUToQuota
34
+ var _ func (int64 ) uint64 = MilliCPUToShares
35
+ var _ func (* v1.Pod , bool , uint64 , bool ) * ResourceConfig = ResourceConfigForPod
36
+ var _ func () (* CgroupSubsystems , error ) = GetCgroupSubsystems
37
+ var _ func (string ) ([]int , error ) = getCgroupProcs
38
+ var _ func (types.UID ) string = GetPodCgroupNameSuffix
39
+ var _ func (string , bool , string ) string = NodeAllocatableRoot
40
+ var _ func (string ) (string , error ) = GetKubeletContainer
41
+
31
42
// hardEvictionReservation returns a resourcelist that includes reservation of resources based on hard eviction thresholds.
32
43
func hardEvictionReservation (thresholds []evictionapi.Threshold , capacity v1.ResourceList ) v1.ResourceList {
33
44
if len (thresholds ) == 0 {
0 commit comments