- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for newTolerations (0.14 sec)
-
pkg/apis/core/v1/helper/helpers.go
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) updated = true continue } newTolerations = append(newTolerations, podTolerations[i]) }
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
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) updated = true continue } newTolerations = append(newTolerations, podTolerations[i]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 16.1K bytes - Viewed (0) -
plugin/pkg/admission/runtimeclass/admission.go
} newNodeSelector[key] = runtimeClassValue } } newTolerations := tolerations.MergeTolerations(pod.Spec.Tolerations, nodeScheduling.Tolerations) pod.Spec.NodeSelector = newNodeSelector pod.Spec.Tolerations = newTolerations return nil } func validateOverhead(a admission.Attributes, pod *api.Pod, runtimeClass *nodev1.RuntimeClass) (err error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 05 05:53:38 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction.go
oldTolerations = oldPod.Spec.Tolerations } newTolerations := []v1.Toleration{} if newPod != nil { podName = newPod.Name podNamespace = newPod.Namespace nodeName = newPod.Spec.NodeName newTolerations = newPod.Spec.Tolerations } if oldPod != nil && newPod != nil && helper.Semantic.DeepEqual(oldTolerations, newTolerations) && oldPod.Spec.NodeName == newPod.Spec.NodeName { return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 19.9K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
func validateOnlyAddedTolerations(newTolerations []core.Toleration, oldTolerations []core.Toleration, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} for _, old := range oldTolerations { found := false oldTolerationClone := old.DeepCopy() for _, newToleration := range newTolerations {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (1)