// VerifyAgainstWhitelist checks if the provided tolerations // satisfy the provided whitelist and returns true, otherwise returns false func VerifyAgainstWhitelist(tolerations, whitelist []api.Toleration) bool { … } // MergeTolerations merges two sets of tolerations into one. If one toleration is a superset of // another, only the superset is kept. func MergeTolerations(first, second []api.Toleration) []api.Toleration { … } // isSuperset checks whether ss tolerates a superset of t. func isSuperset(ss, t api.Toleration) bool { … }