Skip to content

Commit bed3f57

Browse files
committed
Add details about new metric
Signed-off-by: Anish Ramasekar <[email protected]>
1 parent 12c60d8 commit bed3f57

File tree

2 files changed

+7
-3
lines changed
  • keps/sig-auth/4412-projected-service-account-tokens-for-kubelet-image-credential-providers

2 files changed

+7
-3
lines changed

keps/sig-auth/4412-projected-service-account-tokens-for-kubelet-image-credential-providers/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,10 @@ For GA, this section is required: approvers should be able to confirm the
10231023
previous answers based on experience in the field.
10241024
-->
10251025

1026+
New metrics:
1027+
1028+
- `kubelet_credential_provider_config_hash` indicates the hash of the kubelet credential provider configuration file. This metric can be used by operators to determine if the kubelet credential provider configuration has changed.
1029+
10261030
###### How can an operator determine if the feature is in use by workloads?
10271031

10281032
<!--
@@ -1031,8 +1035,7 @@ checking if there are objects with field X set) may be a last resort. Avoid
10311035
logs or events for this purpose.
10321036
-->
10331037

1034-
Operators can check for a kubelet config file passed into the `--image-credential-provider-config`.
1035-
The config has a field called `imageMatches` which indicates the images a plugin will be invoked for.
1038+
Operators can use `kubelet_credential_provider_config_hash` metric to determine if the kubelet credential provider configuration has changed. If the hash of the configuration file changes, it indicates that the kubelet credential provider configuration has been updated.
10361039

10371040
###### How can someone using this feature know that it is working for their instance?
10381041

keps/sig-auth/4412-projected-service-account-tokens-for-kubelet-image-credential-providers/kep.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ feature-gates:
2929
components:
3030
- kube-apiserver
3131
disable-supported: true
32-
metrics: []
32+
metrics:
33+
- kubelet_credential_provider_config_hash

0 commit comments

Comments
 (0)