- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for newErrs (0.35 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)