Skip to content

Commit e55b0ba

Browse files
committed
Fixed output log entry and test yaml.
1 parent 6564b8d commit e55b0ba

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

pkg/controller/clusterstate/cache/cache.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ func (sc *ClusterStateCache) updateState() error {
266266
// Do not use any Unschedulable nodes in calculations
267267
if value.Unschedulable == true {
268268
klog.V(6).Infof("[updateState] %s is marked as unschedulable node Total: %v, Used: %v, and Idle: %v will not be included in cluster state calculation.",
269-
value.Name)
270-
269+
value.Name, value.Allocatable, value.Used, value.Idle)
271270
continue
272271
}
273272

test/yaml/0001-aw-generic-deployment-3.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
GenericItems:
88
- replicas: 1
99
generictemplate:
10-
apiVersion: apps/v1beta1
10+
apiVersion: apps/v1
1111
kind: Deployment
1212
metadata:
1313
name: 0001-aw-generic-deployment-3
@@ -28,3 +28,10 @@ spec:
2828
image: k8s.gcr.io/echoserver:1.4
2929
ports:
3030
- containerPort: 80
31+
resources:
32+
requests:
33+
cpu: 100m
34+
memory: 32Mi
35+
limits:
36+
cpu: 100m
37+
memory: 32Mi

0 commit comments

Comments
 (0)