mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
move helpers.go to helper
This commit is contained in:
@@ -27,6 +27,7 @@ import (
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
utilyaml "k8s.io/apimachinery/pkg/util/yaml"
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/api/helper"
|
||||
"k8s.io/kubernetes/pkg/api/v1"
|
||||
"k8s.io/kubernetes/pkg/api/validation"
|
||||
kubetypes "k8s.io/kubernetes/pkg/kubelet/types"
|
||||
@@ -76,7 +77,7 @@ func applyDefaults(pod *api.Pod, source string, isFile bool, nodeName types.Node
|
||||
if isFile {
|
||||
// Applying the default Taint tolerations to static pods,
|
||||
// so they are not evicted when there are node problems.
|
||||
api.AddOrUpdateTolerationInPod(pod, &api.Toleration{
|
||||
helper.AddOrUpdateTolerationInPod(pod, &api.Toleration{
|
||||
Operator: "Exists",
|
||||
Effect: api.TaintEffectNoExecute,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user