Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for newErrs (0.12 sec)

  1. pkg/controller/deployment/progress_test.go

    			fake := fake.Clientset{}
    			dc := &DeploymentController{
    				client: &fake,
    			}
    
    			if test.newRS != nil {
    				test.allRSs = append(test.allRSs, test.newRS)
    			}
    			_, ctx := ktesting.NewTestContext(t)
    			err := dc.syncRolloutStatus(ctx, test.allRSs, test.newRS, test.d)
    			if err != nil {
    				t.Error(err)
    			}
    
    			newCond := util.GetDeploymentCondition(test.d.Status, test.conditionType)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/value.go

    	if found {
    		return field.Ref.ExprValue()
    	}
    	fieldDef, found := o.objectType.Fields[nameStr]
    	if !found {
    		return types.NewErr("no such field: %s", nameStr)
    	}
    	defValue := fieldDef.DefaultValue()
    	if defValue != nil {
    		return defValue
    	}
    	return types.NewErr("no default for type: %s", fieldDef.TypeName())
    }
    
    // Type returns the CEL type value of the object.
    func (o *ObjectValue) Type() ref.Type {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 20.5K bytes
    - Viewed (0)
  3. pkg/controller/deployment/rolling_test.go

    		oldSelector := map[string]string{"foo": "old"}
    		newRS := rs("foo-new", test.newReplicas, newSelector, noTimestamp)
    		newRS.Status.AvailableReplicas = int32(test.readyPodsFromNewRS)
    		oldRS := rs("foo-old", test.oldReplicas, oldSelector, noTimestamp)
    		oldRS.Status.AvailableReplicas = int32(test.readyPodsFromOldRS)
    		oldRSs := []*apps.ReplicaSet{oldRS}
    		allRSs := []*apps.ReplicaSet{oldRS, newRS}
    		maxSurge := intstr.FromInt32(0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
  4. pkg/controller/deployment/util/deployment_util.go

    	}
    	for k, v := range deployment.Annotations {
    		// newRS revision is updated automatically in getNewReplicaSet, and the deployment's revision number is then updated
    		// by copying its newRS revision number. We should not copy deployment's revision to its newRS, since the update of
    		// deployment revision number may fail (revision becomes stale) and the revision number in newRS is more reliable.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  5. pkg/structured/structured.go

    		return ""
    	}
    	return fmt.Sprintf("\tmoreInfo=%s impact=%s action=%s likelyCause=%s err=%v",
    		e.MoreInfo, e.Impact, e.Action, e.LikelyCause, e.Err)
    }
    
    // NewErr creates a new copy of an Error with the content of serr and err and returns a ptr to it.
    func NewErr(serr *Error, err error) *Error {
    	// Make a copy so that dictionary entry is not modified.
    	ne := *serr
    	ne.Err = err
    	return &ne
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jul 15 23:58:50 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/ratcheting.go

    	if res.IsValid() {
    		return res
    	}
    
    	// Current ratcheting rule is to ratchet errors if DeepEqual(old, new) is true.
    	if r.correlation.CachedDeepEqual() {
    		newRes := &validate.Result{}
    		newRes.MergeAsWarnings(res)
    		return newRes
    	}
    
    	return res
    }
    
    // SubPropertyValidator overrides the standard validator constructor for sub-properties by
    // returning our special ratcheting variant.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 26 21:17:17 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. pkg/controller/deployment/util/deployment_util_test.go

    	later := metav1.Time{Time: now.Add(time.Minute)}
    	before := metav1.Time{Time: now.Add(-time.Minute)}
    
    	deployment := generateDeployment("nginx")
    	newRS := generateRS(deployment)
    	*(newRS.Spec.Replicas) = 1
    	newRS.Labels[apps.DefaultDeploymentUniqueLabelKey] = "hash"
    	newRS.CreationTimestamp = later
    
    	newRSDup := generateRS(deployment)
    	newRSDup.Labels[apps.DefaultDeploymentUniqueLabelKey] = "different-hash"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  8. src/go/types/assignments.go

    				hasErr = true
    			}
    			continue
    		}
    
    		// declare new variable
    		obj := NewVar(ident.Pos(), check.pkg, name, nil)
    		lhsVars[i] = obj
    		if name != "_" {
    			newVars = append(newVars, obj)
    		}
    		check.recordDef(ident, obj)
    	}
    
    	// create dummy variables where the lhs is invalid
    	for i, obj := range lhsVars {
    		if obj == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/assignments.go

    				hasErr = true
    			}
    			continue
    		}
    
    		// declare new variable
    		obj := NewVar(ident.Pos(), check.pkg, name, nil)
    		lhsVars[i] = obj
    		if name != "_" {
    			newVars = append(newVars, obj)
    		}
    		check.recordDef(ident, obj)
    	}
    
    	// create dummy variables where the lhs is invalid
    	for i, obj := range lhsVars {
    		if obj == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/library/authz.go

    	}
    
    	if errors := apimachineryvalidation.ValidateServiceAccountName(name, false); len(errors) > 0 {
    		return types.NewErr("Invalid service account name")
    	}
    	if errors := apimachineryvalidation.ValidateNamespaceName(namespace, false); len(errors) > 0 {
    		return types.NewErr("Invalid service account namespace")
    	}
    	return authz.serviceAccount(namespace, name)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 21.1K bytes
    - Viewed (0)
Back to top