Merge pull request #45819 from 7sunarni/main

Rename example pod-with-affinity-anti-affinity.yaml
pull/46170/head
Kubernetes Prow Robot 2024-05-03 18:23:47 -07:00 committed by GitHub
commit f7a1bfed88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ scheduling decision for the Pod.
For example, consider the following Pod spec:
{{% code_sample file="pods/pod-with-affinity-anti-affinity.yaml" %}}
{{% code_sample file="pods/pod-with-affinity-preferred-weight.yaml" %}}
If there are two possible nodes that match the
`preferredDuringSchedulingIgnoredDuringExecution` rule, one with the

View File

@ -613,7 +613,7 @@ func TestExampleObjectSchemas(t *testing.T) {
"pod-projected-svc-token": {&api.Pod{}},
"pod-rs": {&api.Pod{}, &api.Pod{}},
"pod-single-configmap-env-variable": {&api.Pod{}},
"pod-with-affinity-anti-affinity": {&api.Pod{}},
"pod-with-affinity-preferred-weight": {&api.Pod{}},
"pod-with-node-affinity": {&api.Pod{}},
"pod-with-pod-affinity": {&api.Pod{}},
"pod-with-scheduling-gates": {&api.Pod{}},

View File

@ -1,7 +1,7 @@
apiVersion: v1
kind: Pod
metadata:
name: with-affinity-anti-affinity
name: with-affinity-preferred-weight
spec:
affinity:
nodeAffinity: