File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
plugin/pkg/admission/eventratelimit Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
23
23
"k8s.io/client-go/util/flowcontrol"
24
24
api "k8s.io/kubernetes/pkg/apis/core"
25
25
eventratelimitapi "k8s.io/kubernetes/plugin/pkg/admission/eventratelimit/apis/eventratelimit"
26
+ eventratelimitapiv1alpha1 "k8s.io/kubernetes/plugin/pkg/admission/eventratelimit/apis/eventratelimit/v1alpha1"
26
27
"k8s.io/kubernetes/plugin/pkg/admission/eventratelimit/apis/eventratelimit/validation"
27
28
)
28
29
@@ -43,6 +44,10 @@ func Register(plugins *admission.Plugins) {
43
44
}
44
45
return newEventRateLimit (configuration , realClock {})
45
46
})
47
+
48
+ // add our config types
49
+ eventratelimitapi .AddToScheme (plugins .ConfigScheme )
50
+ eventratelimitapiv1alpha1 .AddToScheme (plugins .ConfigScheme )
46
51
}
47
52
48
53
// Plugin implements an admission controller that can enforce event rate limits
You can’t perform that action at this time.
0 commit comments