kmsv2: retain more key ID metrics

This change helps users understand the state of their encryption
config if storage migration is not consistently run with key ID
rotation.

Signed-off-by: Monis Khan <mok@microsoft.com>

Kubernetes-commit: 539f734bfd0d828a5b3dfbfe30df9d4229e6492c
This commit is contained in:
Monis Khan 2023-03-02 10:42:55 -05:00 committed by Kubernetes Publisher
parent 8944b1509f
commit f051b13244
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ var (
lastToStorage time.Time
keyIDHashTotalMetricLabels *lru.Cache
keyIDHashStatusLastTimestampSecondsMetricLabels *lru.Cache
cacheSize int = 10
cacheSize = 100
// This metric is only used for KMS v1 API.
dekCacheFillPercent = metrics.NewGauge(