@@ -27,7 +27,6 @@ import (
27
27
"github.com/openshift/origin/pkg/api/latest"
28
28
appsapi "github.com/openshift/origin/pkg/apps/apis/apps"
29
29
appsmanualclient "github.com/openshift/origin/pkg/apps/client/internalversion"
30
- appscmd "github.com/openshift/origin/pkg/apps/cmd"
31
30
appsclient "github.com/openshift/origin/pkg/apps/generated/internalclientset"
32
31
appsutil "github.com/openshift/origin/pkg/apps/util"
33
32
authorizationapi "github.com/openshift/origin/pkg/authorization/apis/authorization"
@@ -39,6 +38,7 @@ import (
39
38
buildutil "github.com/openshift/origin/pkg/build/util"
40
39
configcmd "github.com/openshift/origin/pkg/bulk"
41
40
imageapi "github.com/openshift/origin/pkg/image/apis/image"
41
+ deploymentcmd "github.com/openshift/origin/pkg/oc/cli/deploymentconfigs"
42
42
"github.com/openshift/origin/pkg/oc/cli/describe"
43
43
userapi "github.com/openshift/origin/pkg/user/apis/user"
44
44
authenticationreaper "github.com/openshift/origin/pkg/user/reaper"
@@ -203,7 +203,7 @@ func (f *ring1Factory) Scaler(mapping *meta.RESTMapping) (kubectl.Scaler, error)
203
203
if err != nil {
204
204
return nil , err
205
205
}
206
- return appscmd .NewDeploymentConfigScaler (appsclient .NewForConfigOrDie (config ), kc ), nil
206
+ return deploymentcmd .NewDeploymentConfigScaler (appsclient .NewForConfigOrDie (config ), kc ), nil
207
207
}
208
208
return f .kubeObjectMappingFactory .Scaler (mapping )
209
209
}
@@ -220,7 +220,7 @@ func (f *ring1Factory) Reaper(mapping *meta.RESTMapping) (kubectl.Reaper, error)
220
220
if err != nil {
221
221
return nil , err
222
222
}
223
- return appscmd .NewDeploymentConfigReaper (appsclient .NewForConfigOrDie (config ), kc ), nil
223
+ return deploymentcmd .NewDeploymentConfigReaper (appsclient .NewForConfigOrDie (config ), kc ), nil
224
224
case authorizationapi .IsKindOrLegacy ("Role" , gk ):
225
225
authClient , err := f .clientAccessFactory .OpenshiftInternalAuthorizationClient ()
226
226
if err != nil {
@@ -293,7 +293,7 @@ func (f *ring1Factory) HistoryViewer(mapping *meta.RESTMapping) (kubectl.History
293
293
if err != nil {
294
294
return nil , err
295
295
}
296
- return appscmd .NewDeploymentConfigHistoryViewer (kc ), nil
296
+ return deploymentcmd .NewDeploymentConfigHistoryViewer (kc ), nil
297
297
}
298
298
return f .kubeObjectMappingFactory .HistoryViewer (mapping )
299
299
}
@@ -304,7 +304,7 @@ func (f *ring1Factory) Rollbacker(mapping *meta.RESTMapping) (kubectl.Rollbacker
304
304
if err != nil {
305
305
return nil , err
306
306
}
307
- return appscmd .NewDeploymentConfigRollbacker (appsclient .NewForConfigOrDie (config )), nil
307
+ return deploymentcmd .NewDeploymentConfigRollbacker (appsclient .NewForConfigOrDie (config )), nil
308
308
}
309
309
return f .kubeObjectMappingFactory .Rollbacker (mapping )
310
310
}
@@ -315,7 +315,7 @@ func (f *ring1Factory) StatusViewer(mapping *meta.RESTMapping) (kubectl.StatusVi
315
315
return nil , err
316
316
}
317
317
if appsapi .IsKindOrLegacy ("DeploymentConfig" , mapping .GroupVersionKind .GroupKind ()) {
318
- return appscmd .NewDeploymentConfigStatusViewer (appsclient .NewForConfigOrDie (config )), nil
318
+ return deploymentcmd .NewDeploymentConfigStatusViewer (appsclient .NewForConfigOrDie (config )), nil
319
319
}
320
320
return f .kubeObjectMappingFactory .StatusViewer (mapping )
321
321
}
0 commit comments