- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for PodQOSClass (0.26 sec)
-
pkg/apis/core/v1/helper/qos/qos.go
type QOSList map[v1.ResourceName]v1.PodQOSClass func isSupportedQoSComputeResource(name v1.ResourceName) bool { return supportedQoSComputeResources.Has(string(name)) } // GetPodQOS returns the QoS class of a pod persisted in the PodStatus.QOSClass field. // If PodStatus.QOSClass is empty, it returns value of ComputePodQOS() which evaluates pod's QoS class. func GetPodQOS(pod *v1.Pod) v1.PodQOSClass { if pod.Status.QOSClass != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 04:01:46 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/apis/core/helper/qos/qos.go
} // GetPodQOS returns the QoS class of a pod persisted in the PodStatus.QOSClass field. // If PodStatus.QOSClass is empty, it returns value of ComputePodQOS() which evaluates pod's QoS class. func GetPodQOS(pod *core.Pod) core.PodQOSClass { if pod.Status.QOSClass != "" { return pod.Status.QOSClass } return ComputePodQOS(pod) } // ComputePodQOS evaluates the list of containers to determine a pod's QoS class. This function is more
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 04:01:46 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/apis/core/v1/helper/qos/qos_test.go
"k8s.io/kubernetes/pkg/apis/core/helper/qos" corev1 "k8s.io/kubernetes/pkg/apis/core/v1" ) func TestComputePodQOS(t *testing.T) { testCases := []struct { pod *v1.Pod expected v1.PodQOSClass }{ { pod: newPod("guaranteed", []v1.Container{ newContainer("guaranteed", getResourceList("100m", "100Mi"), getResourceList("100m", "100Mi")), }), expected: v1.PodQOSGuaranteed, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 14:47:37 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/fake_topology_manager_test.go
t.Errorf("Expected error to be nil but got: %v", err) } } } func TestFakeAdmit(t *testing.T) { tcases := []struct { name string result lifecycle.PodAdmitResult qosClass v1.PodQOSClass expected bool }{ { name: "QOSClass set as Guaranteed", result: lifecycle.PodAdmitResult{}, qosClass: v1.PodQOSGuaranteed, expected: true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 10 11:44:15 UTC 2021 - 2.8K bytes - Viewed (0) -
pkg/kubelet/cm/qos_container_manager_linux_test.go
return qosContainerManager, nil } func TestQoSContainerCgroup(t *testing.T) { m, err := createTestQOSContainerManager() assert.Nil(t, err) qosConfigs := map[v1.PodQOSClass]*CgroupConfig{ v1.PodQOSGuaranteed: { Name: m.qosContainersInfo.Guaranteed, ResourceParameters: &ResourceConfig{}, }, v1.PodQOSBurstable: {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 4K bytes - Viewed (0)