- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for AddWarning (0.17 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
currentFldPath = currentFldPath.Child(compiled.NormalizedRuleFieldPath) } addErr := func(e *field.Error) { if !compiled.UsesOldSelf && correlation.shouldRatchetError() { warning.AddWarning(ctx, "", e.Error()) } else { errs = append(errs, e) } } if compiled.MessageExpression != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go
r.delegate.ServeHTTP(w, req) return } deprecated := crdInfo.deprecated[requestInfo.APIVersion] for _, w := range crdInfo.warnings[requestInfo.APIVersion] { warning.AddWarning(req.Context(), "", w) } verb := strings.ToUpper(requestInfo.Verb) resource := requestInfo.Resource subresource := requestInfo.Subresource scope := metrics.CleanScope(requestInfo)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 52.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go
sync.Mutex warnings sets.Set[string] } func newWarningRecorder() *warningRecorder { return &warningRecorder{warnings: sets.New[string]()} } func (r *warningRecorder) AddWarning(_, text string) { r.Lock() defer r.Unlock() r.warnings.Insert(text) return } func (r *warningRecorder) hasWarning(text string) bool { r.Lock() defer r.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 25 01:39:01 UTC 2024 - 63.8K bytes - Viewed (0) -
pkg/registry/core/pod/strategy_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
panic(err) } return res } type warningRecorder struct { mu sync.Mutex warnings []string } // AddWarning adds a warning to recorder. func (r *warningRecorder) AddWarning(agent, text string) { r.mu.Lock() defer r.mu.Unlock() r.warnings = append(r.warnings, text) } func (r *warningRecorder) Warnings() []string { r.mu.Lock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0)