fix: globalDefault validation in priority-class-task
Signed-off-by: Abhinav Sinha <[email protected]>
This commit is contained in:
@@ -3986,7 +3986,7 @@
|
||||
{
|
||||
"title": "Create the PriorityClass",
|
||||
"body": "PriorityClass is a cluster-scoped resource (not namespaced). Higher value = higher priority.",
|
||||
"command": "cat <<EOF | kubectl apply -f -\napiVersion: scheduling.k8s.io/v1\nkind: PriorityClass\nmetadata:\n name: high-priority\nvalue: 1000000\ndescription: \"High priority workloads\"\nEOF"
|
||||
"command": "cat <<EOF | kubectl apply -f -\napiVersion: scheduling.k8s.io/v1\nkind: PriorityClass\nmetadata:\n name: high-priority\nvalue: 1000000\nglobalDefault: false\ndescription: \"High priority workloads\"\nEOF"
|
||||
},
|
||||
{
|
||||
"title": "Reference PriorityClass in a Pod",
|
||||
@@ -4009,6 +4009,12 @@
|
||||
"expected_output": "1000000",
|
||||
"match": "exact"
|
||||
},
|
||||
{
|
||||
"description": "globalDefault value is false",
|
||||
"command": "kubectl get priorityclass high-priority -o jsonpath='{.globalDefault}' | grep -v '^$' || echo false",
|
||||
"expected_output": "false",
|
||||
"match": "exact"
|
||||
},
|
||||
{
|
||||
"description": "Pod 'critical-pod' uses high-priority PriorityClass",
|
||||
"command": "kubectl get pod critical-pod -o jsonpath='{.spec.priorityClassName}'",
|
||||
|
||||
Reference in New Issue
Block a user