- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 124 for oldObj (0.17 sec)
-
pkg/registry/rbac/clusterrole/policybased/storage.go
clusterRole := obj.(*rbac.ClusterRole) oldClusterRole := oldObj.(*rbac.ClusterRole) // if we're only mutating fields needed for the GC to eventually delete this obj, return if rbacregistry.IsOnlyMutatingGCFields(obj, oldObj, kapihelper.Semantic) { return obj, nil } rules := clusterRole.Rules
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 10:11:16 UTC 2022 - 5.2K bytes - Viewed (0) -
pkg/registry/certificates/certificates/strategy_test.go
}() tests := []struct { name string newObj *certapi.CertificateSigningRequest oldObj *certapi.CertificateSigningRequest expectedObj *certapi.CertificateSigningRequest }{ { name: "no-op", newObj: &certapi.CertificateSigningRequest{}, oldObj: &certapi.CertificateSigningRequest{}, expectedObj: &certapi.CertificateSigningRequest{}, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 7.6K bytes - Viewed (0) -
plugin/pkg/admission/certificates/ctbattest/admission_test.go
clusterTrustBundleFeatureEnabled: true, allowedName: "abc.com/xyz", attributes: &testAttributes{ resource: certificatesapi.Resource("clustertrustbundles"), oldObj: &certificatesapi.ClusterTrustBundle{ Spec: certificatesapi.ClusterTrustBundleSpec{}, }, obj: &certificatesapi.ClusterTrustBundle{ Spec: certificatesapi.ClusterTrustBundleSpec{}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
} func (s *Validator) validateExpressions(ctx context.Context, fldPath *field.Path, obj, oldObj interface{}, correlation ratchetingOptions, costBudget int64) (errs field.ErrorList, remainingBudget int64) { sts := s.Schema // guard against oldObj being a non-nil interface with a nil value if oldObj != nil { v := reflect.ValueOf(oldObj) switch v.Kind() { case reflect.Map, reflect.Pointer, reflect.Interface, reflect.Slice:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodeports/node_ports_test.go
pod *v1.Pod oldObj interface{} expectedHint framework.QueueingHint expectedErr bool }{ "backoff-wrong-old-object": { pod: podWithHostPort.Obj(), oldObj: "not-a-pod", expectedHint: framework.Queue, expectedErr: true, }, "skip-queue-on-unscheduled": { pod: podWithHostPort.Obj(), oldObj: st.MakePod().Obj(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 19 11:02:11 UTC 2023 - 10.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go
pod *v1.Pod oldObj, newObj interface{} expectedHint framework.QueueingHint expectedErr bool }{ "backoff-wrong-new-object": { pod: &v1.Pod{}, newObj: "not-a-pod", expectedHint: framework.Queue, expectedErr: true, }, "backoff-wrong-old-object": { pod: &v1.Pod{}, oldObj: "not-a-pod", newObj: &v1.Pod{},
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/scheduler/eventhandlers.go
} func (sched *Scheduler) updateNodeInCache(oldObj, newObj interface{}) { logger := sched.logger oldNode, ok := oldObj.(*v1.Node) if !ok { logger.Error(nil, "Cannot convert oldObj to *v1.Node", "oldObj", oldObj) return } newNode, ok := newObj.(*v1.Node) if !ok { logger.Error(nil, "Cannot convert newObj to *v1.Node", "newObj", newObj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:21:04 UTC 2024 - 24K bytes - Viewed (0) -
pkg/registry/apps/daemonset/strategy_test.go
t.Errorf("Unexpected error list, expected: %v, actual: %v", test.expectedErrorList, errorList) } } } func TestValidateToleratingBadLabels(t *testing.T) { oldObj := newDaemonSetWithSelectorLabels(map[string]string{"a": "b"}, 1) oldObj.Spec.Selector.MatchExpressions = []metav1.LabelSelectorRequirement{{Key: "key", Operator: metav1.LabelSelectorOpNotIn, Values: []string{"bad value"}}}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 01:52:02 UTC 2022 - 4.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go
return nil } } res = &watch.Event{ Type: watch.Bookmark, Object: object, } case e.isDeleted: if !wc.filter(oldObj) { return nil } res = &watch.Event{ Type: watch.Deleted, Object: oldObj, } case e.isCreated: if !wc.filter(curObj) { return nil } res = &watch.Event{ Type: watch.Added, Object: curObj, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 10:26:38 UTC 2023 - 18.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go
claims []*resourcev1alpha2.ResourceClaim oldObj, newObj interface{} expectedHint framework.QueueingHint expectedErr bool }{ "skip-deleted": { pod: podWithClaimTemplate, oldObj: scheduling, expectedHint: framework.QueueSkip, }, "skip-missed-deleted": { pod: podWithClaimTemplate, oldObj: cache.DeletedFinalStateUnknown{ Obj: scheduling,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 61.9K bytes - Viewed (0)