@@ -34,7 +34,7 @@ import (
3434// TestWantsAuthorizer ensures that the authorizer is injected
3535// when the WantsAuthorizer interface is implemented by a plugin.
3636func TestWantsAuthorizer (t * testing.T ) {
37- target := initializer .New (nil , nil , nil , & TestAuthorizer {}, nil , nil , nil )
37+ target := initializer .New (nil , nil , nil , & TestAuthorizer {}, nil , nil , nil , nil )
3838wantAuthorizerAdmission := & WantAuthorizerAdmission {}
3939target .Initialize (wantAuthorizerAdmission )
4040if wantAuthorizerAdmission .auth == nil {
@@ -46,7 +46,7 @@ func TestWantsAuthorizer(t *testing.T) {
4646// when the WantsExternalKubeClientSet interface is implemented by a plugin.
4747func TestWantsExternalKubeClientSet (t * testing.T ) {
4848cs := & fake.Clientset {}
49- target := initializer .New (cs , nil , nil , & TestAuthorizer {}, nil , nil , nil )
49+ target := initializer .New (cs , nil , nil , & TestAuthorizer {}, nil , nil , nil , nil )
5050wantExternalKubeClientSet := & WantExternalKubeClientSet {}
5151target .Initialize (wantExternalKubeClientSet )
5252if wantExternalKubeClientSet .cs != cs {
@@ -59,7 +59,7 @@ func TestWantsExternalKubeClientSet(t *testing.T) {
5959func TestWantsExternalKubeInformerFactory (t * testing.T ) {
6060cs := & fake.Clientset {}
6161sf := informers .NewSharedInformerFactory (cs , time .Duration (1 )* time .Second )
62- target := initializer .New (cs , nil , sf , & TestAuthorizer {}, nil , nil , nil )
62+ target := initializer .New (cs , nil , sf , & TestAuthorizer {}, nil , nil , nil , nil )
6363wantExternalKubeInformerFactory := & WantExternalKubeInformerFactory {}
6464target .Initialize (wantExternalKubeInformerFactory )
6565if wantExternalKubeInformerFactory .sf != sf {
@@ -71,7 +71,7 @@ func TestWantsExternalKubeInformerFactory(t *testing.T) {
7171// when the WantsShutdownSignal interface is implemented by a plugin.
7272func TestWantsShutdownNotification (t * testing.T ) {
7373stopCh := make (chan struct {})
74- target := initializer .New (nil , nil , nil , & TestAuthorizer {}, nil , stopCh , nil )
74+ target := initializer .New (nil , nil , nil , & TestAuthorizer {}, nil , nil , stopCh , nil )
7575wantDrainedNotification := & WantDrainedNotification {}
7676target .Initialize (wantDrainedNotification )
7777if wantDrainedNotification .stopCh == nil {
@@ -153,7 +153,7 @@ func (t *TestAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes)
153153}
154154
155155func TestRESTMapperAdmissionPlugin (t * testing.T ) {
156- initializer := initializer .New (nil , nil , nil , & TestAuthorizer {}, nil , nil , & doNothingRESTMapper {})
156+ initializer := initializer .New (nil , nil , nil , & TestAuthorizer {}, nil , nil , nil , & doNothingRESTMapper {})
157157wantsRESTMapperAdmission := & WantsRESTMapperAdmissionPlugin {}
158158initializer .Initialize (wantsRESTMapperAdmission )
159159
0 commit comments