- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,974 for Tolerations (0.26 sec)
-
pkg/util/tolerations/tolerations.go
} next: for _, t := range tolerations { for _, w := range whitelist { if isSuperset(w, t) { continue next } } return false } return true } // 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 { all := append(first, second...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 16 11:54:27 UTC 2020 - 2.7K bytes - Viewed (0) -
releasenotes/notes/add-tolerations-field-to-istiod.yaml
apiVersion: release-notes/v2 kind: feature area: installation issue: [] releaseNotes: - |
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 02 03:09:52 UTC 2023 - 203 bytes - Viewed (0) -
pkg/apis/core/toleration.go
package core // MatchToleration checks if the toleration matches tolerationToMatch. Tolerations are unique by <key,effect,operator,value>, // if the two tolerations have same <key,effect,operator,value> combination, regard as they match. // TODO: uniqueness check for tolerations in api validations. func (t *Toleration) MatchToleration(tolerationToMatch *Toleration) bool { return t.Key == tolerationToMatch.Key &&
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 09 11:14:07 UTC 2017 - 1.2K bytes - Viewed (0) -
plugin/pkg/admission/extendedresourcetoleration/admission_test.go
} if !helper.Semantic.DeepEqual(test.expectedPod.Spec.Tolerations, test.requestedPod.Spec.Tolerations) { t.Errorf("[%d: %s] expected %#v got %#v", i, test.description, test.expectedPod.Spec.Tolerations, test.requestedPod.Spec.Tolerations) } } } func TestHandles(t *testing.T) { plugin := newExtendedResourceToleration()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/api/core/v1/toleration.go
*/ package v1 // MatchToleration checks if the toleration matches tolerationToMatch. Tolerations are unique by <key,effect,operator,value>, // if the two tolerations have same <key,effect,operator,value> combination, regard as they match. // TODO: uniqueness check for tolerations in api validations. func (t *Toleration) MatchToleration(tolerationToMatch *Toleration) bool { return t.Key == tolerationToMatch.Key &&
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 2K bytes - Viewed (0) -
plugin/pkg/admission/podtolerationrestriction/admission.go
// If the namespace has not specified its tolerations whitelist, // fall back to cluster's whitelist of tolerations. if whitelist == nil { whitelist = p.pluginConfig.Whitelist whitelistScope = "cluster" } if len(whitelist) > 0 { // check if the merged pod tolerations satisfy its namespace whitelist if !tolerations.VerifyAgainstWhitelist(pod.Spec.Tolerations, whitelist) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 29 20:07:59 UTC 2020 - 8.3K bytes - Viewed (0) -
plugin/pkg/admission/defaulttolerationseconds/admission_test.go
}, { description: "pod has wildcard toleration for all kind of taints, expect no change", requestedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ {Operator: api.TolerationOpExists, TolerationSeconds: genTolerationSeconds(700)}, }, }, }, expectedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 06 04:56:21 UTC 2019 - 8.8K bytes - Viewed (0) -
plugin/pkg/admission/podtolerationrestriction/doc.go
// Package podtolerationrestriction is a plugin that first verifies // any conflict between a pod's tolerations and its namespace's // tolerations, and rejects the pod if there's a conflict. If there's // no conflict, the pod's tolerations are merged with its namespace's // toleration. Resulting pod's tolerations are verified against its // namespace's whitelist of tolerations. If the verification is // successful, the pod is admitted otherwise rejected. If a namespace
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 18:00:06 UTC 2019 - 1.5K bytes - Viewed (0) -
plugin/pkg/admission/podtolerationrestriction/admission_test.go
}, { pod: bestEffortPod, defaultClusterTolerations: []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue", Effect: "NoSchedule", TolerationSeconds: nil}}, namespaceTolerations: []api.Toleration{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 16K bytes - Viewed (0) -
plugin/pkg/admission/defaulttolerationseconds/admission.go
} tolerations := pod.Spec.Tolerations toleratesNodeNotReady := false toleratesNodeUnreachable := false for _, toleration := range tolerations { if (toleration.Key == v1.TaintNodeNotReady || len(toleration.Key) == 0) && (toleration.Effect == api.TaintEffectNoExecute || len(toleration.Effect) == 0) { toleratesNodeNotReady = true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 06 04:56:21 UTC 2019 - 4K bytes - Viewed (0)