Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for oldTolerations (0.56 sec)

  1. pkg/controller/tainteviction/taint_eviction.go

    func (tc *Controller) PodUpdated(oldPod *v1.Pod, newPod *v1.Pod) {
    	podName := ""
    	podNamespace := ""
    	nodeName := ""
    	oldTolerations := []v1.Toleration{}
    	if oldPod != nil {
    		podName = oldPod.Name
    		podNamespace = oldPod.Namespace
    		nodeName = oldPod.Spec.NodeName
    		oldTolerations = oldPod.Spec.Tolerations
    	}
    	newTolerations := []v1.Toleration{}
    	if newPod != nil {
    		podName = newPod.Name
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation.go

    }
    
    // validateOnlyAddedTolerations validates updated pod tolerations.
    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)
Back to top