Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RecordAuthenticationConfigAutomaticReloadSuccess (0.81 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/authenticationconfig/metrics/metrics.go

    	authenticationConfigAutomaticReloadLastTimestampSeconds.WithLabelValues("failure", apiServerIDHash).SetToCurrentTime()
    }
    
    func RecordAuthenticationConfigAutomaticReloadSuccess(apiServerID string) {
    	apiServerIDHash := getHash(apiServerID)
    	authenticationConfigAutomaticReloadsTotal.WithLabelValues("success", apiServerIDHash).Inc()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/authenticationconfig/metrics/metrics_test.go

    	`
    	metrics := []string{
    		namespace + "_" + subsystem + "_automatic_reloads_total",
    	}
    
    	authenticationConfigAutomaticReloadsTotal.Reset()
    	RegisterMetrics()
    
    	RecordAuthenticationConfigAutomaticReloadSuccess(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: Sat Mar 09 22:40:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. pkg/kubeapiserver/options/authentication.go

    					return
    				}
    
    				trackedAuthenticationConfigData = authConfigData
    				klog.InfoS("reloaded authentication config")
    				authenticationconfigmetrics.RecordAuthenticationConfigAutomaticReloadSuccess(apiServerID)
    			},
    			func(err error) { klog.ErrorS(err, "watching authentication config file") },
    		)
    	}
    
    	openAPIConfig.SecurityDefinitions = openAPIV2SecurityDefinitions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top