@@ -13,6 +13,8 @@ import (
13
13
14
14
appsclient "github.com/openshift/client-go/apps/clientset/versioned"
15
15
appsinformer "github.com/openshift/client-go/apps/informers/externalversions"
16
+ networkclientinternal "github.com/openshift/client-go/network/clientset/versioned"
17
+ networkinformer "github.com/openshift/client-go/network/informers/externalversions"
16
18
routeinformer "github.com/openshift/client-go/route/informers/externalversions"
17
19
securityv1client "github.com/openshift/client-go/security/clientset/versioned"
18
20
authorizationinformer "github.com/openshift/origin/pkg/authorization/generated/informers/internalversion"
@@ -21,8 +23,6 @@ import (
21
23
configapi "github.com/openshift/origin/pkg/cmd/server/apis/config"
22
24
imageinformer "github.com/openshift/origin/pkg/image/generated/informers/internalversion"
23
25
imageclientinternal "github.com/openshift/origin/pkg/image/generated/internalclientset"
24
- networkinformer "github.com/openshift/origin/pkg/network/generated/informers/internalversion"
25
- networkclientinternal "github.com/openshift/origin/pkg/network/generated/internalclientset"
26
26
quotainformer "github.com/openshift/origin/pkg/quota/generated/informers/internalversion"
27
27
quotaclient "github.com/openshift/origin/pkg/quota/generated/internalclientset"
28
28
securityinformer "github.com/openshift/origin/pkg/security/generated/informers/internalversion"
@@ -41,7 +41,7 @@ type ControllerContext struct {
41
41
42
42
InternalBuildInformers buildinformer.SharedInformerFactory
43
43
InternalImageInformers imageinformer.SharedInformerFactory
44
- InternalNetworkInformers networkinformer.SharedInformerFactory
44
+ NetworkInformers networkinformer.SharedInformerFactory
45
45
InternalTemplateInformers templateinformer.SharedInformerFactory
46
46
InternalQuotaInformers quotainformer.SharedInformerFactory
47
47
InternalAuthorizationInformers authorizationinformer.SharedInformerFactory
@@ -90,8 +90,8 @@ type ControllerClientBuilder interface {
90
90
OpenshiftInternalQuotaClient (name string ) (quotaclient.Interface , error )
91
91
OpenshiftInternalQuotaClientOrDie (name string ) quotaclient.Interface
92
92
93
- OpenshiftInternalNetworkClient (name string ) (networkclientinternal.Interface , error )
94
- OpenshiftInternalNetworkClientOrDie (name string ) networkclientinternal.Interface
93
+ OpenshiftNetworkClient (name string ) (networkclientinternal.Interface , error )
94
+ OpenshiftNetworkClientOrDie (name string ) networkclientinternal.Interface
95
95
96
96
OpenshiftInternalSecurityClient (name string ) (securityclient.Interface , error )
97
97
OpenshiftInternalSecurityClientOrDie (name string ) securityclient.Interface
@@ -232,22 +232,22 @@ func (b OpenshiftControllerClientBuilder) OpenshiftInternalQuotaClientOrDie(name
232
232
return client
233
233
}
234
234
235
- // OpenshiftInternalNetworkClient provides a REST client for the network API.
235
+ // OpenshiftNetworkClient provides a REST client for the network API.
236
236
// If the client cannot be created because of configuration error, this function
237
237
// will error.
238
- func (b OpenshiftControllerClientBuilder ) OpenshiftInternalNetworkClient (name string ) (networkclientinternal.Interface , error ) {
238
+ func (b OpenshiftControllerClientBuilder ) OpenshiftNetworkClient (name string ) (networkclientinternal.Interface , error ) {
239
239
clientConfig , err := b .Config (name )
240
240
if err != nil {
241
241
return nil , err
242
242
}
243
243
return networkclientinternal .NewForConfig (clientConfig )
244
244
}
245
245
246
- // OpenshiftInternalNetworkClientOrDie provides a REST client for the network API.
246
+ // OpenshiftNetworkClientOrDie provides a REST client for the network API.
247
247
// If the client cannot be created because of configuration error, this function
248
248
// will panic.
249
- func (b OpenshiftControllerClientBuilder ) OpenshiftInternalNetworkClientOrDie (name string ) networkclientinternal.Interface {
250
- client , err := b .OpenshiftInternalNetworkClient (name )
249
+ func (b OpenshiftControllerClientBuilder ) OpenshiftNetworkClientOrDie (name string ) networkclientinternal.Interface {
250
+ client , err := b .OpenshiftNetworkClient (name )
251
251
if err != nil {
252
252
glog .Fatal (err )
253
253
}
0 commit comments