- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ObserveWebhookFailOpen (0.23 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/metrics/metrics_test.go
} func TestObserveWebhookFailOpen(t *testing.T) { defer Metrics.reset() defer legacyregistry.Reset() Metrics.ObserveWebhookFailOpen(context.TODO(), "x", stepAdmit) Metrics.ObserveWebhookFailOpen(context.TODO(), "x", stepValidate) wantLabelsCounterAdmit := map[string]string{ "name": "x", "type": "admit", } wantLabelsCounterValidate := map[string]string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 17:01:37 UTC 2023 - 16.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go
} if ignoreClientCallFailures { // if failures are supposed to ignored, ignore it klog.Warningf("Panic calling webhook, failing open %v: %v", hookName, r) admissionmetrics.Metrics.ObserveWebhookFailOpen(ctx, hookName, "validating") key := fmt.Sprintf("%sround_0_index_%d", ValidatingAuditAnnotationFailedOpenKeyPrefix, idx) value := hookName
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/metrics/metrics.go
} m.webhookRejection.WithContext(ctx).WithLabelValues(name, stepType, operation, string(errorType), strconv.Itoa(rejectionCode)).Inc() } // ObserveWebhookFailOpen records validating or mutating webhook that fail open. func (m *AdmissionMetrics) ObserveWebhookFailOpen(ctx context.Context, name, stepType string) { m.webhookFailOpen.WithContext(ctx).WithLabelValues(name, stepType).Inc() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 17:01:40 UTC 2023 - 15.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go
klog.Warningf("Context canceled when calling webhook %v", hook.Name) } else { klog.Warningf("Failed calling webhook, failing open %v: %v", hook.Name, callErr) admissionmetrics.Metrics.ObserveWebhookFailOpen(ctx, hook.Name, "admit") annotator.addFailedOpenAnnotation() } utilruntime.HandleError(callErr) select { case <-ctx.Done():
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 19.6K bytes - Viewed (0)