- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,974 for Tolerations (0.14 sec)
-
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/util/tolerations/tolerations_test.go
} // Check whether the toleration is a subset of a toleration in the set. isContained := func(toleration api.Toleration, set []api.Toleration) bool { for _, ss := range set { if isSuperset(ss, toleration) { return true } } return false } const iterations = 1000 debugMsg := func(tolerations ...[]api.Toleration) string { str, err := json.Marshal(tolerations) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 26 22:25:49 UTC 2019 - 11.4K 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) -
pkg/util/tolerations/doc.go
See the License for the specific language governing permissions and limitations under the License. */ // Package tolerations provides utilities to work with pod spec tolerations.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 06 20:15:34 UTC 2017 - 719 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) -
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/types.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 09 11:14:08 UTC 2017 - 1K bytes - Viewed (0) -
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/v1alpha1/types.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 07:28:47 UTC 2017 - 1.1K bytes - Viewed (0)