fix error message for pod resize validation failure

This commit is contained in:
Anish Shah
2024-10-22 19:39:00 -07:00
parent 07ca0b09bb
commit ce0f4597d3
2 changed files with 8 additions and 5 deletions

View File

@@ -25315,7 +25315,7 @@ func TestValidatePodResize(t *testing.T) {
Requests: getResourceLimits("100m", "100Mi"),
}))),
),
err: "Pod QoS is immutable",
err: "Pod QOS Class must not change",
test: "Pod QoS change, guaranteed -> burstable",
}, {
new: *podtest.MakePod("pod",
@@ -25331,7 +25331,7 @@ func TestValidatePodResize(t *testing.T) {
Requests: getResourceLimits("100m", "100Mi"),
}))),
),
err: "Pod QoS is immutable",
err: "Pod QOS Class must not change",
test: "Pod QoS change, burstable -> guaranteed",
}, {
new: *podtest.MakePod("pod",
@@ -25342,7 +25342,7 @@ func TestValidatePodResize(t *testing.T) {
}))),
),
old: *podtest.MakePod("pod"),
err: "Pod QoS is immutable",
err: "Pod QOS Class must not change",
test: "Pod QoS change, besteffort -> burstable",
}, {
new: *podtest.MakePod("pod"),
@@ -25353,7 +25353,7 @@ func TestValidatePodResize(t *testing.T) {
Requests: getResourceLimits("100m", "100Mi"),
}))),
),
err: "Pod QoS is immutable",
err: "Pod QOS Class must not change",
test: "Pod QoS change, burstable -> besteffort",
},
}