Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for newErrs (0.17 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy.go

    	// ratcheting validation of x-kubernetes-list-type value map and set
    	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)
  2. operator/pkg/validate/validate.go

    	}
    	if !util.IsPtr(structPtr) {
    		metrics.CRValidationErrorTotal.Increment()
    		return util.NewErrs(fmt.Errorf("validate path %s, value: %v, expected ptr, got %T", path, structPtr, structPtr))
    	}
    	structElems := reflect.ValueOf(structPtr).Elem()
    	if !util.IsStruct(structElems) {
    		metrics.CRValidationErrorTotal.Increment()
    		return util.NewErrs(fmt.Errorf("validate path %s, value: %v, expected struct, got %T", path, structElems, structElems))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 12 16:04:15 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. operator/pkg/validate/common.go

    	scope.Debugf("validatePortNumberString %v:", val)
    	if !util.IsString(val) {
    		return util.NewErrs(fmt.Errorf("validatePortNumberString(%s) bad type %T, want string", path, val))
    	}
    	if val.(string) == "*" || val.(string) == "" {
    		return nil
    	}
    	intV, err := strconv.ParseInt(val.(string), 10, 32)
    	if err != nil {
    		return util.NewErrs(fmt.Errorf("%s : %s", path, err))
    	}
    	return validatePortNumber(path, intV)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 11K bytes
    - Viewed (0)
  4. operator/pkg/patch/patch.go

    	bo := make(map[any]any)
    	by, err := base.YAML()
    	if err != nil {
    		return "", util.NewErrs(err)
    	}
    	// Use yaml2 specifically to allow interface{} as key which WritePathContext treats specially
    	err = yaml2.Unmarshal(by, &bo)
    	if err != nil {
    		return "", util.NewErrs(err)
    	}
    	for _, p := range patches {
    		v := p.Value.AsInterface()
    		if strings.TrimSpace(p.Path) == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. operator/pkg/apis/istio/v1alpha1/validation/validation.go

    	validators := []FeatureValidator{
    		CheckServicePorts,
    		CheckAutoScaleAndReplicaCount,
    	}
    
    	for _, validator := range validators {
    		newErrs, newWarnings := validator(values, spec)
    		errs = util.AppendErrs(errs, newErrs)
    		warnings = append(warnings, newWarnings...)
    	}
    
    	return
    }
    
    // CheckAutoScaleAndReplicaCount warns when autoscaleEnabled is true and k8s replicaCount is set.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 20:02:28 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2_test.go

    			vMod := make([][]xlMetaV2ShallowVersion, 0, len(vers))
    			for i, ver := range vers {
    				newVers := make([]xlMetaV2ShallowVersion, 0, len(ver))
    				for _, v := range ver {
    					v.header.Signature = [4]byte{byte(i + 10), 0, 0, 0}
    					newVers = append(newVers, v)
    				}
    				vMod = append(vMod, newVers)
    			}
    			merged := mergeXLV2Versions(i, false, 0, vMod...)
    			if len(merged) == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  7. pkg/controller/deployment/rolling.go

    	// Sync deployment status
    	return dc.syncRolloutStatus(ctx, allRSs, newRS, d)
    }
    
    func (dc *DeploymentController) reconcileNewReplicaSet(ctx context.Context, allRSs []*apps.ReplicaSet, newRS *apps.ReplicaSet, deployment *apps.Deployment) (bool, error) {
    	if *(newRS.Spec.Replicas) == *(deployment.Spec.Replicas) {
    		// Scaling not required.
    		return false, nil
    	}
    	if *(newRS.Spec.Replicas) > *(deployment.Spec.Replicas) {
    		// Scale down.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top