- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 184 for untaint (0.2 sec)
-
staging/src/k8s.io/api/core/v1/taint.go
*/ package v1 import "fmt" // MatchTaint checks if the taint matches taintToMatch. Taints are unique by key:effect, // if the two taints have same key:effect, regard as they match. func (t *Taint) MatchTaint(taintToMatch *Taint) bool { return t.Key == taintToMatch.Key && t.Effect == taintToMatch.Effect }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 16 13:06:01 UTC 2019 - 1.3K bytes - Viewed (0) -
pkg/apis/core/taint.go
package core import "fmt" // MatchTaint checks if the taint matches taintToMatch. Taints are unique by key:effect, // if the two taints have same key:effect, regard as they match. func (t *Taint) MatchTaint(taintToMatch Taint) bool { return t.Key == taintToMatch.Key && t.Effect == taintToMatch.Effect }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 25 18:06:51 UTC 2019 - 1.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/helper/taint.go
import v1 "k8s.io/api/core/v1" // DoNotScheduleTaintsFilterFunc returns the filter function that can // filter out the node taints that reject scheduling Pod on a Node. func DoNotScheduleTaintsFilterFunc() func(t *v1.Taint) bool { return func(t *v1.Taint) bool { // PodToleratesNodeTaints is only interested in NoSchedule and NoExecute taints. return t.Effect == v1.TaintEffectNoSchedule || t.Effect == v1.TaintEffectNoExecute }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 10 01:04:30 UTC 2022 - 1K bytes - Viewed (0) -
releasenotes/notes/drop-taint.yaml
apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - |
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 14 15:12:43 UTC 2023 - 150 bytes - Viewed (0) -
pkg/util/taints/taints.go
for _, taint := range taints { if fn(&taint) { res = append(res, taint) } } return res } // CheckTaintValidation checks if the given taint is valid. // Returns error if the given taint is invalid. func CheckTaintValidation(taint v1.Taint) error { if errs := validation.IsQualifiedName(taint.Key); len(errs) > 0 { return fmt.Errorf("invalid taint key: %s", strings.Join(errs, "; ")) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 09:23:35 UTC 2022 - 8.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/initconfiguration_test.go
t.Fatalf("unexpected error of BytesToInitConfiguration: %v\nconfig: %s", err, string(b)) } if tc.expectedTaintCnt != len(cfg.NodeRegistration.Taints) { t.Fatalf("unexpected taints count\nexpected: %d\ngot: %d\ntaints: %v", tc.expectedTaintCnt, len(cfg.NodeRegistration.Taints), cfg.NodeRegistration.Taints) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 13 09:17:03 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 31.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go
// use the protobuf tag, which must be stable dataInt := 0 if protobufTagParts := strings.Split(field.Tag.Get("protobuf"), ","); len(protobufTagParts) > 1 { if tag, err := strconv.Atoi(protobufTagParts[1]); err != nil { panic(err) } else { dataInt = tag } } if dataInt == 0 { // fall back to the length of dataString as a backup dataInt = -len(dataString) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:59 UTC 2023 - 6.5K bytes - Viewed (0) -
pkg/util/taints/taints_test.go
expectedTaints: []v1.Taint{taint, taintNew}, }, { name: "add duplicate taint", node: &v1.Node{ Spec: v1.NodeSpec{Taints: []v1.Taint{taint}}, }, taint: &taint, expectedUpdate: false, expectedTaints: []v1.Taint{taint}, }, { name: "update taint value", node: &v1.Node{ Spec: v1.NodeSpec{Taints: []v1.Taint{taint}}, }, taint: &taintUpdateValue,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 09:23:35 UTC 2022 - 22.6K bytes - Viewed (0) -
staging/src/k8s.io/api/core/v1/taint_test.go
}, { taint: &Taint{ Key: "foo", }, expectedString: "foo", }, { taint: &Taint{ Key: "foo", Value: "bar", }, expectedString: "foo=bar:", }, } for i, tc := range testCases { if tc.expectedString != tc.taint.ToString() { t.Errorf("[%v] expected taint %v converted to %s, got %s", i, tc.taint, tc.expectedString, tc.taint.ToString()) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 16 13:06:01 UTC 2019 - 2.9K bytes - Viewed (0)