code: func GetMatchingTolerations(taints []v1.Taint, tolerations []v1.Toleration) (bool, []v1.Toleration) {
  	if len(taints) == 0 {
  		return true, []v1.Toleration{}
  	}
  	if len(tolerations) == 0 && len(taints) > 0 {
  		return false, []v1.Toleration{}
  	}
  	result := []v1.Toleration{}
  	for i := range taints {
  		tolerated := false
  		for j := range tolerations {
  			if tolerations[j].ToleratesTaint(&taints[i]) {
  				result = append(result, tolerations[j])
  				tolerated = true
  				break
  			}
  		}
  		if !tolerated {
  			return false, []v1.Toleration{}
  		}
  	}
  	return true, result
  }
docs: // Returns true and list of Tolerations matching all Taints if all are tolerated, or false otherwise.