Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for oldregs (0.18 sec)

  1. pkg/kube/krt/collection.go

    				newRes, newExists := results[key]
    				// Find the old O object
    				oldRes, oldExists := h.collectionState.outputs[key]
    				e := Event[O]{}
    				if newExists && oldExists {
    					if equal(newRes, oldRes) {
    						// NOP change, skip
    						continue
    					}
    					e.Event = controllers.EventUpdate
    					e.New = &newRes
    					e.Old = &oldRes
    					h.collectionState.outputs[key] = newRes
    				} else if newExists {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/crdclient/types.gen.go

    		}
    		patchBytes, err := genPatchBytes(oldRes, modRes, typ)
    		if err != nil {
    			return nil, err
    		}
    		return c.Istio().SecurityV1beta1().AuthorizationPolicies(orig.Namespace).
    			Patch(context.TODO(), orig.Name, typ, patchBytes, metav1.PatchOptions{FieldManager: "pilot-discovery"})
    	case gvk.DestinationRule:
    		oldRes := &apiistioioapinetworkingv1alpha3.DestinationRule{
    			ObjectMeta: origMeta,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  3. pkg/registry/discovery/endpointslice/strategy_test.go

    	testcases := []struct {
    		name             string
    		hintsGateEnabled bool
    		oldEPS           *discovery.EndpointSlice
    		newEPS           *discovery.EndpointSlice
    		expectedEPS      *discovery.EndpointSlice
    	}{
    		{
    			name: "node name gate enabled, set on new EPS",
    			oldEPS: &discovery.EndpointSlice{
    				Endpoints: []discovery.Endpoint{
    					{
    						NodeName: nil,
    					},
    					{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  4. pkg/config/schema/codegen/templates/crdclient.go.tmpl

    	case gvk.{{.Resource.Identifier}}:
    		oldRes := &{{ .IstioAwareClientImport }}.{{ .Resource.Kind }}{
    				ObjectMeta: origMeta,
    				Spec:       *(orig.Spec.(*{{ .ClientImport }}.{{.SpecType}})),
    		}
    		modRes := &{{ .IstioAwareClientImport }}.{{ .Resource.Kind }}{
    			ObjectMeta: modMeta,
    			Spec:       *(mod.Spec.(*{{ .ClientImport }}.{{.SpecType}})),
    		}
    		patchBytes, err := genPatchBytes(oldRes, modRes, typ)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    		}
    	}
    	return nil
    }
    
    func (f *WorkFile) AddReplace(oldPath, oldVers, newPath, newVers string) error {
    	return addReplace(f.Syntax, &f.Replace, oldPath, oldVers, newPath, newVers)
    }
    
    func (f *WorkFile) DropReplace(oldPath, oldVers string) error {
    	for _, r := range f.Replace {
    		if r.Old.Path == oldPath && r.Old.Version == oldVers {
    			r.Syntax.markRemoved()
    			*r = Replace{}
    		}
    	}
    	return nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. pilot/pkg/model/jwks_resolver.go

    	}
    
    	// Sort both sets of keys by "kid (key ID)" to be able to directly compare
    	oldKeys, oldKeysExists := oldJWKs["keys"].([]any)
    	newKeys, newKeysExists := newJWKs["keys"].([]any)
    	if oldKeysExists && newKeysExists {
    		sort.Slice(oldKeys, func(i, j int) bool {
    			key1, ok1 := oldKeys[i].(map[string]any)
    			key2, ok2 := oldKeys[j].(map[string]any)
    			if ok1 && ok2 {
    				key1Id, kid1Exists := key1["kid"]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    	}
    	return nil
    }
    
    func (f *File) AddReplace(oldPath, oldVers, newPath, newVers string) error {
    	return addReplace(f.Syntax, &f.Replace, oldPath, oldVers, newPath, newVers)
    }
    
    func addReplace(syntax *FileSyntax, replace *[]*Replace, oldPath, oldVers, newPath, newVers string) error {
    	need := true
    	old := module.Version{Path: oldPath, Version: oldVers}
    	new := module.Version{Path: newPath, Version: newVers}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modget/get.go

    			mActual = mRepl
    		}
    		old := module.Version{Path: m.Path, Version: r.initialVersion[m.Path]}
    		if old.Version == "" {
    			continue
    		}
    		oldActual := old
    		if oldRepl := modload.Replacement(old); oldRepl.Path != "" {
    			oldActual = oldRepl
    		}
    		if mActual == oldActual || mActual.Version == "" || !modfetch.HaveSum(oldActual) {
    			continue
    		}
    		r.work.Add(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/crdclient/client.go

    		ResourceVersion: config.ResourceVersion,
    		OwnerReferences: config.OwnerReferences,
    		UID:             types.UID(config.UID),
    	}
    }
    
    func genPatchBytes(oldRes, modRes runtime.Object, patchType types.PatchType) ([]byte, error) {
    	oldJSON, err := json.Marshal(oldRes)
    	if err != nil {
    		return nil, fmt.Errorf("failed marhsalling original resource: %v", err)
    	}
    	newJSON, err := json.Marshal(modRes)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. pkg/controller/replicaset/replica_set.go

    	oldRS := old.(*apps.ReplicaSet)
    	curRS := cur.(*apps.ReplicaSet)
    
    	// TODO: make a KEP and fix informers to always call the delete event handler on re-create
    	if curRS.UID != oldRS.UID {
    		key, err := controller.KeyFunc(oldRS)
    		if err != nil {
    			utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", oldRS, err))
    			return
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top