You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove duplicate last-used PATCH in legacy service account validator (1.37.0 rebase) #4520
In the kcp-dev/kubernetes 1.37.0 rebase (kcp-dev/kubernetes#198), pkg/serviceaccount/legacy.go, legacyValidator.Validate contains an inline "last-used" label PATCH block (around lines 176-190). It duplicates patchSecretWithLastUsedDate, which is called right after it.
When the last-used label is stale, each authentication with the token sends two PATCH requests until the first one lands in the informer cache.
The inline block omits .WithUID(secret.UID), so it can label a secret that was deleted and recreated under the same name. The helper guards against that.
This looks like a rebase merge artifact. Upstream v1.37.0 only calls the helper.
What should replace it
Remove the inline block and keep only the helper call:
Activity