Skip to content

Commit 19b0da7

Browse files
committed
go fmt
Signed-off-by: everettraven <[email protected]>
1 parent 7a3a6aa commit 19b0da7

File tree

1 file changed

+8
-8
lines changed
  • openshift-kube-apiserver/admission/authorization/restrictusers

1 file changed

+8
-8
lines changed

openshift-kube-apiserver/admission/authorization/restrictusers/intializers.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package restrictusers
33
import (
44
"k8s.io/apiserver/pkg/admission"
55

6-
userinformer "github.com/openshift/client-go/user/informers/externalversions"
76
configv1informer "github.com/openshift/client-go/config/informers/externalversions"
7+
userinformer "github.com/openshift/client-go/user/informers/externalversions"
88
)
99

1010
func NewInitializer(userInformer userinformer.SharedInformerFactory, configInformer configv1informer.SharedInformerFactory) admission.PluginInitializer {
11-
return &localInitializer{userInformer: userInformer, configInformer: configInformer}
11+
return &localInitializer{userInformer: userInformer, configInformer: configInformer}
1212
}
1313

1414
type WantsUserInformer interface {
@@ -17,12 +17,12 @@ type WantsUserInformer interface {
1717
}
1818

1919
type WantsConfigInformer interface {
20-
SetConfigInformer(configv1informer.SharedInformerFactory)
20+
SetConfigInformer(configv1informer.SharedInformerFactory)
2121
}
2222

2323
type localInitializer struct {
24-
userInformer userinformer.SharedInformerFactory
25-
configInformer configv1informer.SharedInformerFactory
24+
userInformer userinformer.SharedInformerFactory
25+
configInformer configv1informer.SharedInformerFactory
2626
}
2727

2828
// Initialize will check the initialization interfaces implemented by each plugin
@@ -32,7 +32,7 @@ func (i *localInitializer) Initialize(plugin admission.Interface) {
3232
wants.SetUserInformer(i.userInformer)
3333
}
3434

35-
if wants, ok := plugin.(WantsConfigInformer); ok {
36-
wants.SetConfigInformer(i.configInformer)
37-
}
35+
if wants, ok := plugin.(WantsConfigInformer); ok {
36+
wants.SetConfigInformer(i.configInformer)
37+
}
3838
}

0 commit comments

Comments
 (0)