Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddOrUpdateTolerationInPodSpec (0.2 sec)

  1. pkg/apis/core/v1/helper/helpers.go

    			continue
    		}
    
    		return true
    	}
    
    	return false
    }
    
    // AddOrUpdateTolerationInPodSpec tries to add a toleration to the toleration list in PodSpec.
    // Returns true if something was updated, false otherwise.
    func AddOrUpdateTolerationInPodSpec(spec *v1.PodSpec, toleration *v1.Toleration) bool {
    	podTolerations := spec.Tolerations
    
    	var newTolerations []v1.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)
Back to top