update dependencies (#6267)

Signed-off-by: hongming <coder.scala@gmail.com>
(cherry picked from commit cfebd96a1f)
This commit is contained in:
hongming
2025-03-11 14:19:32 +08:00
parent 742c1e52db
commit 39eab5ee5c
4246 changed files with 341171 additions and 131193 deletions

View File

@@ -40,7 +40,7 @@ const (
type ResourceQuotaAdmission struct {
client client.Client
decoder *webhook.AdmissionDecoder
decoder webhook.AdmissionDecoder
lockFactory LockFactory
@@ -117,8 +117,8 @@ func (r *ResourceQuotaAdmission) lockAquisition(quotas []corev1.ResourceQuota) f
// acquire the locks in alphabetical order because I'm too lazy to think of something clever
sort.Sort(ByName(quotas))
for _, quota := range quotas {
lock := r.lockFactory.GetLock(string(quota.UID))
for _, q := range quotas {
lock := r.lockFactory.GetLock(string(q.UID))
lock.Lock()
locks = append(locks, lock)
}