Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for oldArgs (0.16 sec)

  1. operator/cmd/mesh/operator.go

    	}
    
    	odArgs := &operatorDumpArgs{}
    	oiArgs := &operatorInitArgs{}
    	orArgs := &operatorRemoveArgs{}
    	args := &RootArgs{}
    
    	odc := operatorDumpCmd(args, odArgs)
    	oic := operatorInitCmd(ctx, args, oiArgs)
    	orc := operatorRemoveCmd(ctx, args, orArgs)
    
    	addFlags(odc, args)
    	addFlags(oic, args)
    	addFlags(orc, args)
    
    	addOperatorDumpFlags(odc, odArgs)
    	addOperatorInitFlags(oic, oiArgs)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. pkg/config/analysis/incluster/controller.go

    			gvk := oldcfg.GroupVersionKind
    			if (gvk == config.GroupVersionKind{}) {
    				gvk = newcfg.GroupVersionKind
    			}
    			chKind <- gvk
    		})
    	}
    	oldmsgs := map[string]diag.Messages{}
    	pushFn := func(combinedKinds sets.Set[config.GroupVersionKind]) {
    		res, err := c.analyzer.ReAnalyzeSubset(combinedKinds, stop)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. pkg/controller/deployment/sync.go

    func (dc *DeploymentController) syncStatusOnly(ctx context.Context, d *apps.Deployment, rsList []*apps.ReplicaSet) error {
    	newRS, oldRSs, err := dc.getAllReplicaSetsAndSyncRevision(ctx, d, rsList, false)
    	if err != nil {
    		return err
    	}
    
    	allRSs := append(oldRSs, newRS)
    	return dc.syncDeploymentStatus(ctx, allRSs, newRS, d)
    }
    
    // sync is responsible for reconciling deployments on scaling events or when they
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  4. pkg/controller/deployment/util/deployment_util_test.go

    	newRSDup.CreationTimestamp = now
    
    	oldDeployment := generateDeployment("nginx")
    	oldDeployment.Spec.Template.Spec.Containers[0].Name = "nginx-old-1"
    	oldRS := generateRS(oldDeployment)
    	oldRS.Status.FullyLabeledReplicas = *(oldRS.Spec.Replicas)
    	oldRS.CreationTimestamp = before
    
    	tests := []struct {
    		Name            string
    		deployment      apps.Deployment
    		rsList          []*apps.ReplicaSet
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy.go

    	if newErrs := structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uNew.Object); len(newErrs) > 0 {
    		if oldErrs := structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uOld.Object); len(oldErrs) == 0 {
    			errs = append(errs, newErrs...)
    		}
    	}
    
    	// validate x-kubernetes-validations rules
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 22:16:10 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. pkg/registry/apps/replicaset/strategy.go

    func (rsStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newRS := obj.(*apps.ReplicaSet)
    	oldRS := old.(*apps.ReplicaSet)
    	// update is not allowed to set status
    	newRS.Status = oldRS.Status
    
    	pod.DropDisabledTemplateFields(&newRS.Spec.Template, &oldRS.Spec.Template)
    
    	// Any changes to the spec increment the generation number, any changes to the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:43 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pkg/registry/apps/replicaset/strategy_test.go

    		},
    	}
    	StatusStrategy.PrepareForUpdate(ctx, newRS, oldRS)
    	if newRS.Status.Replicas != 3 {
    		t.Errorf("ReplicaSet status updates should allow change of replicas: %v", newRS.Status.Replicas)
    	}
    	if newRS.Spec.Replicas != 3 {
    		t.Errorf("PrepareForUpdate should have preferred spec")
    	}
    	errs := StatusStrategy.ValidateUpdate(ctx, newRS, oldRS)
    	if len(errs) != 0 {
    		t.Errorf("Unexpected error %v", errs)
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 09 21:04:31 UTC 2021
    - 6.9K 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