kubernetes: k8s.io/kubernetes/pkg/util/tolerations Index | Files

package tolerations

import "k8s.io/kubernetes/pkg/util/tolerations"

Package tolerations provides utilities to work with pod spec tolerations.


Package Files

doc.go tolerations.go

func MergeTolerations Uses

func MergeTolerations(first, second []api.Toleration) []api.Toleration

MergeTolerations merges two sets of tolerations into one. If one toleration is a superset of another, only the superset is kept.

func VerifyAgainstWhitelist Uses

func VerifyAgainstWhitelist(tolerations, whitelist []api.Toleration) bool

VerifyAgainstWhitelist checks if the provided tolerations satisfy the provided whitelist and returns true, otherwise returns false

Package tolerations imports 3 packages (graph) and is imported by 28 packages. Updated 2020-05-26. Refresh now. Tools for package owners.