- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for RecordAuthorizationConfigAutomaticReloadFailure (0.54 sec)
-
pkg/kubeapiserver/authorizer/reload.go
r.lastLoadedLock.Lock() defer r.lastLoadedLock.Unlock() data, err := os.ReadFile(r.initialConfig.ReloadFile) if err != nil { klog.ErrorS(err, "reloading authorization config") metrics.RecordAuthorizationConfigAutomaticReloadFailure(r.apiServerID) return } if bytes.Equal(data, r.lastReadData) { // no change return } klog.InfoS("found new authorization config data") r.lastReadData = data
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:01:15 UTC 2024 - 9.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/authorizationconfig/metrics/metrics.go
}) } func ResetMetricsForTest() { authorizationConfigAutomaticReloadsTotal.Reset() authorizationConfigAutomaticReloadLastTimestampSeconds.Reset() } func RecordAuthorizationConfigAutomaticReloadFailure(apiServerID string) { apiServerIDHash := getHash(apiServerID) authorizationConfigAutomaticReloadsTotal.WithLabelValues("failure", apiServerIDHash).Inc()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 13:20:59 UTC 2024 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/authorizationconfig/metrics/metrics_test.go
` metrics := []string{ namespace + "_" + subsystem + "_automatic_reloads_total", } authorizationConfigAutomaticReloadsTotal.Reset() RegisterMetrics() RecordAuthorizationConfigAutomaticReloadFailure(testAPIServerID) if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, strings.NewReader(expectedValue), metrics...); err != nil { t.Fatal(err) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 14 23:09:15 UTC 2024 - 4.6K bytes - Viewed (0)