- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 117 for oldObj (0.17 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/equality.go
// except for timestamp, but the objects are the different. This is the // slow path which checks the full object. oldAccessor, err := meta.Accessor(oldObj) if err != nil { return nil, fmt.Errorf("failed to acquire accessor for oldObj: %v", err) } accessor, err := meta.Accessor(newObj) if err != nil { return nil, fmt.Errorf("failed to acquire accessor for newObj: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 28 14:56:34 UTC 2022 - 5.3K bytes - Viewed (0) -
pkg/registry/core/configmap/strategy.go
return false } func (strategy) PrepareForUpdate(ctx context.Context, newObj, oldObj runtime.Object) { oldConfigMap := oldObj.(*api.ConfigMap) newConfigMap := newObj.(*api.ConfigMap) dropDisabledFields(newConfigMap, oldConfigMap) } func (strategy) ValidateUpdate(ctx context.Context, newObj, oldObj runtime.Object) field.ErrorList { oldCfg, newCfg := oldObj.(*api.ConfigMap), newObj.(*api.ConfigMap)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 20:38:11 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/proxy/config/config.go
func (c *ServiceCIDRConfig) handleServiceCIDREvent(oldObj, newObj interface{}) { var oldServiceCIDR, newServiceCIDR *networkingv1alpha1.ServiceCIDR var ok bool if oldObj != nil { oldServiceCIDR, ok = oldObj.(*networkingv1alpha1.ServiceCIDR) if !ok { utilruntime.HandleError(fmt.Errorf("unexpected object type: %v", oldObj)) return } } if newObj != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 15.1K bytes - Viewed (0) -
pkg/scheduler/util/utils.go
} } if oldObj != nil { if realOldObj, ok := oldObj.(cache.DeletedFinalStateUnknown); ok { oldObj = realOldObj.Obj } oldTyped, ok = oldObj.(T) if !ok { return oldTyped, newTyped, fmt.Errorf("expected %T, but got %T", oldTyped, oldObj) } } return oldTyped, newTyped, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 21 01:40:44 UTC 2023 - 6.2K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/graph_populator.go
g.updateVolumeAttachment(nil, obj) } func (g *graphPopulator) updateVolumeAttachment(oldObj, obj interface{}) { attachment := obj.(*storagev1.VolumeAttachment) if oldObj != nil { // skip add if node name is identical oldAttachment := oldObj.(*storagev1.VolumeAttachment) if oldAttachment.Spec.NodeName == attachment.Spec.NodeName { return } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 6.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/conversion_test.go
gvk := func(g, v, k string) schema.GroupVersionKind { return schema.GroupVersionKind{Group: g, Version: v, Kind: k} } attrs := func(obj, oldObj runtime.Object) Attributes { return NewAttributesRecord(obj, oldObj, schema.GroupVersionKind{}, "", "", schema.GroupVersionResource{}, "", "", nil, false, nil) } u := func(data string) *unstructured.Unstructured { t.Helper()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 13.7K bytes - Viewed (0) -
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)