- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,769 for Tolerations (0.33 sec)
-
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) -
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_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) -
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) -
pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go
{Name: "nodeC", Score: 0}, }, }, // taints-tolerations priority only takes care about the taints and tolerations that have effect PreferNoSchedule { name: "only taints and tolerations that have effect PreferNoSchedule are checked by taints-tolerations priority function", pod: podWithTolerations("pod1", []v1.Toleration{ { Key: "cpu-type", Operator: v1.TolerationOpEqual,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 17.5K bytes - Viewed (0) -
operator/pkg/translate/translate_value_test.go
pilot: enabled: true rollingMaxSurge: 100% rollingMaxUnavailable: 25% resources: requests: cpu: 1000m memory: 1G replicaCount: 1 nodeSelector: kubernetes.io/os: linux tolerations: - key: dedicated operator: Exists effect: NoSchedule - key: CriticalAddonsOnly operator: Exists autoscaleEnabled: true autoscaleMax: 3 autoscaleMin: 1 cpu:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 06 02:56:54 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/apis/core/v1/helper/helpers.go
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]) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 23:03:54 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/apis/node/validation/validation_test.go
Effect: core.TaintEffectNoSchedule, }}, }, expectErrs: 1, }, { name: "duplicate tolerations", scheduling: &node.Scheduling{ Tolerations: []core.Toleration{{ Key: "valid", Operator: core.TolerationOpExists, Effect: core.TaintEffectNoExecute, TolerationSeconds: utilpointer.Int64(5), }, { Key: "valid",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 07:48:42 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction.go
} // getMinTolerationTime returns minimal toleration time from the given slice, or -1 if it's infinite. func getMinTolerationTime(tolerations []v1.Toleration) time.Duration { minTolerationTime := int64(math.MaxInt64) if len(tolerations) == 0 { return 0 } for i := range tolerations { if tolerations[i].TolerationSeconds != nil { tolerationSeconds := *(tolerations[i].TolerationSeconds) if tolerationSeconds <= 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 19.9K bytes - Viewed (0)