- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for AddWarning (0.16 sec)
-
plugin/pkg/admission/security/podsecurity/admission.go
return nil } result := p.delegate.Validate(ctx, &lazyConvertingAttributes{Attributes: a}) for _, w := range result.Warnings { warning.AddWarning(ctx, "", w) } if len(result.AuditAnnotations) > 0 { annotations := make([]string, len(result.AuditAnnotations)*2) i := 0 for k, v := range result.AuditAnnotations {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 08:49:11 UTC 2023 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/bearertoken/bearertoken_test.go
t.Errorf("%d: expected not authenticated (no token)", i) } } } type dummyRecorder struct { agent string text string } func (r *dummyRecorder) AddWarning(agent, text string) { r.agent = agent r.text = text return } func (r *dummyRecorder) getWarning() string { return r.text } var _ warning.Recorder = &dummyRecorder{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 25 13:22:28 UTC 2022 - 8.8K bytes - Viewed (0) -
pkg/registry/batch/job/storage/storage_test.go
test := genericregistrytest.New(t, storage.Job.Store) test.TestDelete(validNewJob()) } type dummyRecorder struct { agent string text string } func (r *dummyRecorder) AddWarning(agent, text string) { r.agent = agent r.text = text return } func (r *dummyRecorder) getWarning() string { return r.text } var _ warning.Recorder = &dummyRecorder{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 11.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/create.go
return errors.NewInvalid(kind.GroupKind(), objectMeta.GetName(), errs) } for _, w := range strategy.WarningsOnCreate(ctx, obj) { warning.AddWarning(ctx, "", w) } strategy.Canonicalize(obj) return nil } // CheckGeneratedNameError checks whether an error that occurred creating a resource is due
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 9.1K bytes - Viewed (0) -
plugin/pkg/admission/security/podsecurity/admission_test.go
b.Fatalf("expected warning containing %q, got %q", e, a) } } } type dummyRecorder struct { count int agent string text string } func (r *dummyRecorder) AddWarning(agent, text string) { r.count++ r.agent = agent r.text = text return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 15 01:29:47 UTC 2022 - 10.7K bytes - Viewed (0) -
pkg/registry/core/serviceaccount/storage/token.go
} } if r.maxExpirationSeconds > 0 && req.Spec.ExpirationSeconds > r.maxExpirationSeconds { //only positive value is valid warning.AddWarning(ctx, "", fmt.Sprintf("requested expiration of %d seconds shortened to %d seconds", req.Spec.ExpirationSeconds, r.maxExpirationSeconds)) req.Spec.ExpirationSeconds = r.maxExpirationSeconds }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 05 10:24:31 UTC 2024 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go
klog.Warningf("Failed to set admission audit annotation %s to %s for validating webhook %s: %v", key, v, h.Name, err) } } for _, w := range result.Warnings { warning.AddWarning(ctx, "", w) } if result.Allowed { return nil } return &webhookutil.ErrWebhookRejection{Status: webhookerrors.ToStatusErr(h.Name, result.Result)}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 20:24:12 UTC 2023 - 13K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go
celmetrics.Metrics.ObserveAudit(ctx, decision.Elapsed, definition.Name, binding.Name, "active") case admissionregistrationv1.Warn: warning.AddWarning(ctx, "", fmt.Sprintf("Validation failed for ValidatingAdmissionPolicy '%s' with binding '%s': %s", definition.Name, binding.Name, decision.Message))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 14.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/update.go
if len(errs) > 0 { return errors.NewInvalid(kind.GroupKind(), objectMeta.GetName(), errs) } for _, w := range strategy.WarningsOnUpdate(ctx, obj, old) { warning.AddWarning(ctx, "", w) } strategy.Canonicalize(obj) return nil } // TransformFunc is a function to transform and return newObj
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go
klog.Warningf("Failed to set admission audit annotation %s to %s for mutating webhook %s: %v", key, v, h.Name, err) } } for _, w := range result.Warnings { warning.AddWarning(ctx, "", w) } if !result.Allowed { return false, &webhookutil.ErrWebhookRejection{Status: webhookerrors.ToStatusErr(h.Name, result.Result)} } if len(result.Patch) == 0 { return false, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 19.6K bytes - Viewed (0)