- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,640 for Tolerations (0.15 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) -
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/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) -
pkg/apis/node/validation/validation.go
allErrs = append(allErrs, validateTolerations(s.Tolerations, fldPath.Child("tolerations"))...) return allErrs } func validateTolerations(tolerations []core.Toleration, fldPath *field.Path) field.ErrorList { allErrs := corevalidation.ValidateTolerations(tolerations, fldPath.Child("tolerations")) // Ensure uniquenes of tolerations. tolerationSet := map[core.Toleration]bool{} for i, t := range tolerations {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 19:08:24 UTC 2022 - 3.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go
for _, toleration := range tolerations { // Empty effect means all effects which includes PreferNoSchedule, so we need to collect it as well. if len(toleration.Effect) == 0 || toleration.Effect == v1.TaintEffectPreferNoSchedule { tolerationList = append(tolerationList, toleration) } } return } // PreScore builds and writes cycle state used by Score and NormalizeScore.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 9.2K bytes - Viewed (0)