Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 69 for newErrs (0.23 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager.go

    	newLiveObj, newManaged, newErr := f.fieldManager.Apply(liveObj, newObj, managed, manager, force)
    	// Upgrade the client-side apply annotation only from kubectl server-side-apply.
    	// To opt-out of this behavior, users may specify a different field manager.
    	if manager != "kubectl" {
    		return newLiveObj, newManaged, newErr
    	}
    
    	// Check if we have conflicts
    	if newErr == nil {
    		return newLiveObj, newManaged, newErr
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    			return types.NullValue
    		}
    		return types.NewErr("invalid data, got null for schema with nullable=false")
    	}
    	if schema.IsXIntOrString() {
    		switch v := unstructured.(type) {
    		case string:
    			return types.String(v)
    		case int:
    			return types.Int(v)
    		case int32:
    			return types.Int(v)
    		case int64:
    			return types.Int(v)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  3. pkg/controller/deployment/sync_test.go

    				client:        &fake,
    				eventRecorder: &record.FakeRecorder{},
    			}
    
    			if test.newRS != nil {
    				desiredReplicas := *(test.oldDeployment.Spec.Replicas)
    				if desired, ok := test.desiredReplicasAnnotations[test.newRS.Name]; ok {
    					desiredReplicas = desired
    				}
    				deploymentutil.SetReplicasAnnotations(test.newRS, desiredReplicas, desiredReplicas+deploymentutil.MaxSurge(*test.oldDeployment))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  4. pkg/controller/deployment/sync.go

    			Template:        newRSTemplate,
    		},
    	}
    	allRSs := append(oldRSs, &newRS)
    	newReplicasCount, err := deploymentutil.NewRSNewReplicas(d, allRSs, &newRS)
    	if err != nil {
    		return nil, err
    	}
    
    	*(newRS.Spec.Replicas) = newReplicasCount
    	// Set new replica set's annotation
    	deploymentutil.SetNewReplicaSetAnnotations(ctx, d, &newRS, newRevision, false, maxRevHistoryLengthInChars)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  5. 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)
  6. pkg/controller/deployment/progress.go

    // to deployment conditions.
    func (dc *DeploymentController) getReplicaFailures(allRSs []*apps.ReplicaSet, newRS *apps.ReplicaSet) []apps.DeploymentCondition {
    	var conditions []apps.DeploymentCondition
    	if newRS != nil {
    		for _, c := range newRS.Status.Conditions {
    			if c.Type != apps.ReplicaSetReplicaFailure {
    				continue
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 11:00:44 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  7. pkg/controller/deployment/recreate.go

    	if scaledDown {
    		// Update DeploymentStatus.
    		return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    	}
    
    	// Do not process a deployment when it has old pods running.
    	if oldPodsRunning(newRS, oldRSs, podMap) {
    		return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    	}
    
    	// If we need to create a new RS, create it now.
    	if newRS == nil {
    		newRS, oldRSs, err = dc.getAllReplicaSetsAndSyncRevision(ctx, d, rsList, true)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 13 20:32:13 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  8. 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)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go

    			_, _, desiredPLNames, newBadPLNames := genPLs(rng, trialStep, persistingPLNames, 0)
    			_, _, newFTRs, newCatchAlls := genFSs(t, rng, trialStep, desiredPLNames, newBadPLNames, 0)
    			for j := 0; ; {
    				if testDebugLogs {
    					t.Logf("For %s, desiredPLNames=%#+v", trialStep, desiredPLNames)
    					t.Logf("For %s, newFTRs=%#+v", trialStep, newFTRs)
    				}
    				// Check that the latest digestion did the right thing
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go

    	if a.result.Error != nil {
    		return types.NewErr("composited variable %q fails to compile: %v", a.name, a.result.Error)
    	}
    
    	v, details, err := a.result.Program.ContextEval(a.context, a.activation)
    	if details == nil {
    		return types.NewErr("unable to get evaluation details of variable %q", a.name)
    	}
    	costPtr := details.ActualCost()
    	if costPtr == nil {
    		return types.NewErr("unable to calculate cost of variable %q", a.name)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top