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
Copy file name to clipboardExpand all lines: staging/src/k8s.io/apiextensions-apiserver/pkg/controller/nonstructuralschema/nonstructuralschema_controller.go
+46-5Lines changed: 46 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ package nonstructuralschema
18
18
19
19
import (
20
20
"fmt"
21
+
"sync"
21
22
"time"
22
23
23
24
apierrors "k8s.io/apimachinery/pkg/api/errors"
@@ -47,6 +48,11 @@ type ConditionController struct {
47
48
syncFnfunc(keystring) error
48
49
49
50
queue workqueue.RateLimitingInterface
51
+
52
+
// last generation this controller updated the condition per CRD name (to avoid two
53
+
// different version of the apiextensions-apiservers in HA to fight for the right message)
54
+
lastSeenGenerationLock sync.Mutex
55
+
lastSeenGenerationmap[string]int64
50
56
}
51
57
52
58
// NewConditionController constructs a non-structural schema condition controller.
0 commit comments