Change:
}, }, { <del> description: "pod has tolerations, but none is for taint `notReady:NoExecute` or `unreachable:NoExecute`, expect add tolerations for `notReady:NoExecute` and `unreachable:NoExecute`", </del> <ins> description: "pod has alpha tolerations, expect add tolerations for `not-ready:NoExecute` and `unreachable:NoExecute`" + ", the alpha tolerations will not be touched", requestedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ { Key:               algorithm.DeprecatedTaintNodeNotReady, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, { Key:               algorithm.DeprecatedTaintNodeUnreachable, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, }, }, }, expectedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ { Key:               algorithm.DeprecatedTaintNodeNotReady, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, { Key:               algorithm.DeprecatedTaintNodeUnreachable, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, { Key:               algorithm.TaintNodeNotReady, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, { Key:               algorithm.TaintNodeUnreachable, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, }, }, }, }, { description: "pod has alpha not-ready toleration, expect add tolerations for `not-ready:NoExecute` and `unreachable:NoExecute`" + ", the alpha tolerations will not be touched", requestedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ { Key:               algorithm.DeprecatedTaintNodeNotReady, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, }, }, }, expectedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ { Key:               algorithm.DeprecatedTaintNodeNotReady, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, { Key:               algorithm.TaintNodeNotReady, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, { Key:               algorithm.TaintNodeUnreachable, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, }, }, }, }, { description: "pod has alpha unreachable toleration, expect add tolerations for `not-ready:NoExecute` and `unreachable:NoExecute`" + ", the alpha tolerations will not be touched", requestedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ { Key:               algorithm.DeprecatedTaintNodeUnreachable, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, }, }, }, expectedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ { Key:               algorithm.DeprecatedTaintNodeUnreachable, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, { Key:               algorithm.TaintNodeNotReady, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, { Key:               algorithm.TaintNodeUnreachable, Operator:          api.TolerationOpExists, Effect:            api.TaintEffectNoExecute, TolerationSeconds: &defaultTolerationSeconds, }, }, }, }, }, { description: "pod has tolerations, but none is for taint `not-ready:NoExecute` or `unreachable:NoExecute`, expect add tolerations for `not-ready:NoExecute` and `unreachable:NoExecute`", </ins> requestedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{

Discussion:
<!-- This form is for bug reports and feature requests ONLY! If you're looking for help check and the . --Is this a BUG REPORT or FEATURE REQUEST?: What happened: When discussing issue in , I noticed: although is using key , it has actually been changed to in for quite a while. I am thinking we may need to fix this inconsistency in 1.9, by moving out of alpha. Anything else we need to know?: Task tracker: [x] update [x] update kubernetes doc
/sig scheduling