- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for podTolerations (0.22 sec)
-
plugin/pkg/admission/podtolerationrestriction/admission_test.go
Spec: api.PodSpec{}, } podToleration := api.Toleration{ Key: "testKey", Operator: "Equal", Value: "testValue1", Effect: "NoSchedule", TolerationSeconds: nil, } pod.Spec.Tolerations = []api.Toleration{podToleration} // this conflicts with pod's Tolerations namespaceToleration := podToleration namespaceToleration.Value = "testValue2"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 16K bytes - Viewed (0) -
pkg/apis/core/v1/helper/helpers.go
func AddOrUpdateTolerationInPodSpec(spec *v1.PodSpec, toleration *v1.Toleration) bool { podTolerations := spec.Tolerations var newTolerations []v1.Toleration updated := false for i := range podTolerations { if toleration.MatchToleration(&podTolerations[i]) { if helper.Semantic.DeepEqual(toleration, podTolerations[i]) { return false } newTolerations = append(newTolerations, *toleration)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/apis/core/helper/helpers.go
func AddOrUpdateTolerationInPod(pod *core.Pod, toleration *core.Toleration) bool { podTolerations := pod.Spec.Tolerations var newTolerations []core.Toleration updated := false for i := range podTolerations { if toleration.MatchToleration(&podTolerations[i]) { if Semantic.DeepEqual(toleration, podTolerations[i]) { return false } newTolerations = append(newTolerations, *toleration)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 16.1K bytes - Viewed (0) -
pkg/kubelet/types/pod_update.go
ConfigHashAnnotationKey = "kubernetes.io/config.hash" ) // PodOperation defines what changes will be made on a pod configuration. type PodOperation int // These constants identify the PodOperations that can be made on a pod configuration. const ( // SET is the current pod configuration. SET PodOperation = iota // ADD signifies pods that are new to this source. ADD
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:12 UTC 2023 - 6.4K bytes - Viewed (0)