Skip to content

Commit 7512dca

Browse files
committed
Rename deploy.* imports to apps.*
1 parent 37bf502 commit 7512dca

File tree

158 files changed

+3000
-3000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+3000
-3000
lines changed

examples/examples_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"k8s.io/kubernetes/pkg/capabilities"
1919

2020
"github.com/openshift/origin/pkg/api/validation"
21-
deployapi "github.com/openshift/origin/pkg/apps/apis/apps"
21+
appsapi "github.com/openshift/origin/pkg/apps/apis/apps"
2222
buildapi "github.com/openshift/origin/pkg/build/apis/build"
2323
imageapi "github.com/openshift/origin/pkg/image/apis/image"
2424
networkapi "github.com/openshift/origin/pkg/network/apis/network"
@@ -113,15 +113,15 @@ func TestExampleObjectSchemas(t *testing.T) {
113113
},
114114
"../test/extended/testdata/ldap": {
115115
"ldapserver-buildconfig": &buildapi.BuildConfig{},
116-
"ldapserver-deploymentconfig": &deployapi.DeploymentConfig{},
116+
"ldapserver-deploymentconfig": &appsapi.DeploymentConfig{},
117117
"ldapserver-imagestream": &imageapi.ImageStream{},
118118
"ldapserver-imagestream-testenv": &imageapi.ImageStream{},
119119
"ldapserver-service": &kapi.Service{},
120120
},
121121
"../test/integration/testdata": {
122122
// TODO fix this test to handle json and yaml
123123
"project-request-template-with-quota": nil, // skip a yaml file
124-
"test-deployment-config": &deployapi.DeploymentConfig{},
124+
"test-deployment-config": &appsapi.DeploymentConfig{},
125125
"test-image": &imageapi.Image{},
126126
"test-image-stream": &imageapi.ImageStream{},
127127
"test-image-stream-mapping": nil, // skip &imageapi.ImageStreamMapping{},

pkg/api/graph/graphview/dc_pipeline.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55

66
osgraph "github.com/openshift/origin/pkg/api/graph"
77
kubegraph "github.com/openshift/origin/pkg/api/kubegraph/nodes"
8-
deployedges "github.com/openshift/origin/pkg/apps/graph"
9-
deploygraph "github.com/openshift/origin/pkg/apps/graph/nodes"
8+
appsedges "github.com/openshift/origin/pkg/apps/graph"
9+
appsgraph "github.com/openshift/origin/pkg/apps/graph/nodes"
1010
)
1111

1212
type DeploymentConfigPipeline struct {
13-
Deployment *deploygraph.DeploymentConfigNode
13+
Deployment *appsgraph.DeploymentConfigNode
1414

1515
ActiveDeployment *kubegraph.ReplicationControllerNode
1616
InactiveDeployments []*kubegraph.ReplicationControllerNode
@@ -23,12 +23,12 @@ func AllDeploymentConfigPipelines(g osgraph.Graph, excludeNodeIDs IntSet) ([]Dep
2323
covered := IntSet{}
2424
dcPipelines := []DeploymentConfigPipeline{}
2525

26-
for _, uncastNode := range g.NodesByKind(deploygraph.DeploymentConfigNodeKind) {
26+
for _, uncastNode := range g.NodesByKind(appsgraph.DeploymentConfigNodeKind) {
2727
if excludeNodeIDs.Has(uncastNode.ID()) {
2828
continue
2929
}
3030

31-
pipeline, covers := NewDeploymentConfigPipeline(g, uncastNode.(*deploygraph.DeploymentConfigNode))
31+
pipeline, covers := NewDeploymentConfigPipeline(g, uncastNode.(*appsgraph.DeploymentConfigNode))
3232
covered.Insert(covers.List()...)
3333
dcPipelines = append(dcPipelines, pipeline)
3434
}
@@ -38,30 +38,30 @@ func AllDeploymentConfigPipelines(g osgraph.Graph, excludeNodeIDs IntSet) ([]Dep
3838
}
3939

4040
// NewDeploymentConfigPipeline returns the DeploymentConfigPipeline and a set of all the NodeIDs covered by the DeploymentConfigPipeline
41-
func NewDeploymentConfigPipeline(g osgraph.Graph, dcNode *deploygraph.DeploymentConfigNode) (DeploymentConfigPipeline, IntSet) {
41+
func NewDeploymentConfigPipeline(g osgraph.Graph, dcNode *appsgraph.DeploymentConfigNode) (DeploymentConfigPipeline, IntSet) {
4242
covered := IntSet{}
4343
covered.Insert(dcNode.ID())
4444

4545
dcPipeline := DeploymentConfigPipeline{}
4646
dcPipeline.Deployment = dcNode
4747

4848
// for everything that can trigger a deployment, create an image pipeline and add it to the list
49-
for _, istNode := range g.PredecessorNodesByEdgeKind(dcNode, deployedges.TriggersDeploymentEdgeKind) {
49+
for _, istNode := range g.PredecessorNodesByEdgeKind(dcNode, appsedges.TriggersDeploymentEdgeKind) {
5050
imagePipeline, covers := NewImagePipelineFromImageTagLocation(g, istNode, istNode.(ImageTagLocation))
5151

5252
covered.Insert(covers.List()...)
5353
dcPipeline.Images = append(dcPipeline.Images, imagePipeline)
5454
}
5555

5656
// for image that we use, create an image pipeline and add it to the list
57-
for _, tagNode := range g.PredecessorNodesByEdgeKind(dcNode, deployedges.UsedInDeploymentEdgeKind) {
57+
for _, tagNode := range g.PredecessorNodesByEdgeKind(dcNode, appsedges.UsedInDeploymentEdgeKind) {
5858
imagePipeline, covers := NewImagePipelineFromImageTagLocation(g, tagNode, tagNode.(ImageTagLocation))
5959

6060
covered.Insert(covers.List()...)
6161
dcPipeline.Images = append(dcPipeline.Images, imagePipeline)
6262
}
6363

64-
dcPipeline.ActiveDeployment, dcPipeline.InactiveDeployments = deployedges.RelevantDeployments(g, dcNode)
64+
dcPipeline.ActiveDeployment, dcPipeline.InactiveDeployments = appsedges.RelevantDeployments(g, dcNode)
6565
for _, rc := range dcPipeline.InactiveDeployments {
6666
_, covers := NewReplicationController(g, rc)
6767
covered.Insert(covers.List()...)

pkg/api/graph/graphview/service_group.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
osgraph "github.com/openshift/origin/pkg/api/graph"
1111
kubeedges "github.com/openshift/origin/pkg/api/kubegraph"
1212
kubegraph "github.com/openshift/origin/pkg/api/kubegraph/nodes"
13-
deploygraph "github.com/openshift/origin/pkg/apps/graph/nodes"
13+
appsgraph "github.com/openshift/origin/pkg/apps/graph/nodes"
1414
routeedges "github.com/openshift/origin/pkg/route/graph"
1515
routegraph "github.com/openshift/origin/pkg/route/graph/nodes"
1616
)
@@ -25,7 +25,7 @@ type ServiceGroup struct {
2525

2626
// TODO: this has to stop
2727
FulfillingStatefulSets []*kubegraph.StatefulSetNode
28-
FulfillingDCs []*deploygraph.DeploymentConfigNode
28+
FulfillingDCs []*appsgraph.DeploymentConfigNode
2929
FulfillingRCs []*kubegraph.ReplicationControllerNode
3030
FulfillingPods []*kubegraph.PodNode
3131

@@ -63,7 +63,7 @@ func NewServiceGroup(g osgraph.Graph, serviceNode *kubegraph.ServiceNode) (Servi
6363
container := osgraph.GetTopLevelContainerNode(g, uncastServiceFulfiller)
6464

6565
switch castContainer := container.(type) {
66-
case *deploygraph.DeploymentConfigNode:
66+
case *appsgraph.DeploymentConfigNode:
6767
service.FulfillingDCs = append(service.FulfillingDCs, castContainer)
6868
case *kubegraph.ReplicationControllerNode:
6969
service.FulfillingRCs = append(service.FulfillingRCs, castContainer)

pkg/api/graph/graphview/veneering_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import (
1414
osgraphtest "github.com/openshift/origin/pkg/api/graph/test"
1515
kubeedges "github.com/openshift/origin/pkg/api/kubegraph"
1616
kubegraph "github.com/openshift/origin/pkg/api/kubegraph/nodes"
17-
deployapi "github.com/openshift/origin/pkg/apps/apis/apps"
18-
deployedges "github.com/openshift/origin/pkg/apps/graph"
19-
deploygraph "github.com/openshift/origin/pkg/apps/graph/nodes"
17+
appsapi "github.com/openshift/origin/pkg/apps/apis/apps"
18+
appsedges "github.com/openshift/origin/pkg/apps/graph"
19+
appsgraph "github.com/openshift/origin/pkg/apps/graph/nodes"
2020
buildapi "github.com/openshift/origin/pkg/build/apis/build"
2121
buildedges "github.com/openshift/origin/pkg/build/graph"
2222
buildgraph "github.com/openshift/origin/pkg/build/graph/nodes"
@@ -31,7 +31,7 @@ func TestServiceGroup(t *testing.T) {
3131

3232
kubeedges.AddAllExposedPodTemplateSpecEdges(g)
3333
buildedges.AddAllInputOutputEdges(g)
34-
deployedges.AddAllTriggerEdges(g)
34+
appsedges.AddAllTriggerEdges(g)
3535

3636
coveredNodes := IntSet{}
3737

@@ -104,7 +104,7 @@ func TestBareDCGroup(t *testing.T) {
104104

105105
kubeedges.AddAllExposedPodTemplateSpecEdges(g)
106106
buildedges.AddAllInputOutputEdges(g)
107-
deployedges.AddAllTriggerEdges(g)
107+
appsedges.AddAllTriggerEdges(g)
108108

109109
coveredNodes := IntSet{}
110110

@@ -160,7 +160,7 @@ func TestBareBCGroup(t *testing.T) {
160160

161161
kubeedges.AddAllExposedPodTemplateSpecEdges(g)
162162
buildedges.AddAllInputOutputEdges(g)
163-
deployedges.AddAllTriggerEdges(g)
163+
appsedges.AddAllTriggerEdges(g)
164164

165165
coveredNodes := IntSet{}
166166

@@ -286,12 +286,12 @@ func TestGraph(t *testing.T) {
286286
},
287287
},
288288
})
289-
deploygraph.EnsureDeploymentConfigNode(g, &deployapi.DeploymentConfig{
289+
appsgraph.EnsureDeploymentConfigNode(g, &appsapi.DeploymentConfig{
290290
ObjectMeta: metav1.ObjectMeta{Namespace: "other", Name: "deploy1"},
291-
Spec: deployapi.DeploymentConfigSpec{
292-
Triggers: []deployapi.DeploymentTriggerPolicy{
291+
Spec: appsapi.DeploymentConfigSpec{
292+
Triggers: []appsapi.DeploymentTriggerPolicy{
293293
{
294-
ImageChangeParams: &deployapi.DeploymentTriggerImageChangeParams{
294+
ImageChangeParams: &appsapi.DeploymentTriggerImageChangeParams{
295295
From: kapi.ObjectReference{Kind: "ImageStreamTag", Namespace: "default", Name: "other:tag1"},
296296
ContainerNames: []string{"1", "2"},
297297
},
@@ -323,9 +323,9 @@ func TestGraph(t *testing.T) {
323323
},
324324
},
325325
})
326-
deploygraph.EnsureDeploymentConfigNode(g, &deployapi.DeploymentConfig{
326+
appsgraph.EnsureDeploymentConfigNode(g, &appsapi.DeploymentConfig{
327327
ObjectMeta: metav1.ObjectMeta{Namespace: "default", Name: "deploy2"},
328-
Spec: deployapi.DeploymentConfigSpec{
328+
Spec: appsapi.DeploymentConfigSpec{
329329
Template: &kapi.PodTemplateSpec{
330330
ObjectMeta: metav1.ObjectMeta{
331331
Labels: map[string]string{
@@ -348,8 +348,8 @@ func TestGraph(t *testing.T) {
348348
kubeedges.AddAllExposedPodTemplateSpecEdges(g)
349349
buildedges.AddAllInputOutputEdges(g)
350350
buildedges.AddAllBuildEdges(g)
351-
deployedges.AddAllTriggerEdges(g)
352-
deployedges.AddAllDeploymentEdges(g)
351+
appsedges.AddAllTriggerEdges(g)
352+
appsedges.AddAllDeploymentEdges(g)
353353

354354
t.Log(g)
355355

pkg/api/graph/test/runtimeobject_nodebuilder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
osgraph "github.com/openshift/origin/pkg/api/graph"
1515
_ "github.com/openshift/origin/pkg/api/install"
1616
kubegraph "github.com/openshift/origin/pkg/api/kubegraph/nodes"
17-
deployapi "github.com/openshift/origin/pkg/apps/apis/apps"
18-
deploygraph "github.com/openshift/origin/pkg/apps/graph/nodes"
17+
appsapi "github.com/openshift/origin/pkg/apps/apis/apps"
18+
appsgraph "github.com/openshift/origin/pkg/apps/graph/nodes"
1919
buildapi "github.com/openshift/origin/pkg/build/apis/build"
2020
buildgraph "github.com/openshift/origin/pkg/build/graph/nodes"
2121
imageapi "github.com/openshift/origin/pkg/image/apis/image"
@@ -34,7 +34,7 @@ func init() {
3434
if err := RegisterEnsureNode(&imageapi.ImageStream{}, imagegraph.EnsureImageStreamNode); err != nil {
3535
panic(err)
3636
}
37-
if err := RegisterEnsureNode(&deployapi.DeploymentConfig{}, deploygraph.EnsureDeploymentConfigNode); err != nil {
37+
if err := RegisterEnsureNode(&appsapi.DeploymentConfig{}, appsgraph.EnsureDeploymentConfigNode); err != nil {
3838
panic(err)
3939
}
4040
if err := RegisterEnsureNode(&buildapi.BuildConfig{}, buildgraph.EnsureBuildConfigNode); err != nil {

pkg/api/install/install.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3838
watchapi "k8s.io/apimachinery/pkg/watch"
3939

40-
deployapi "github.com/openshift/origin/pkg/apps/apis/apps"
40+
appsapi "github.com/openshift/origin/pkg/apps/apis/apps"
4141
authorizationapi "github.com/openshift/origin/pkg/authorization/apis/authorization"
4242
buildapi "github.com/openshift/origin/pkg/build/apis/build"
4343
imageapi "github.com/openshift/origin/pkg/image/apis/image"
@@ -47,7 +47,7 @@ import (
4747
templateapi "github.com/openshift/origin/pkg/template/apis/template"
4848
userapi "github.com/openshift/origin/pkg/user/apis/user"
4949

50-
deployv1 "github.com/openshift/origin/pkg/apps/apis/apps/v1"
50+
appsapiv1 "github.com/openshift/origin/pkg/apps/apis/apps/v1"
5151
authorizationv1 "github.com/openshift/origin/pkg/authorization/apis/authorization/v1"
5252
buildv1 "github.com/openshift/origin/pkg/build/apis/build/v1"
5353
imagev1 "github.com/openshift/origin/pkg/image/apis/image/v1"
@@ -301,15 +301,15 @@ func init() {
301301
return true, templatev1.Convert_template_BrokerTemplateInstanceList_To_v1_BrokerTemplateInstanceList(a, b, s)
302302
}
303303

304-
case *deployv1.DeploymentConfig:
304+
case *appsapiv1.DeploymentConfig:
305305
switch b := objB.(type) {
306-
case *deployapi.DeploymentConfig:
307-
return true, deployv1.Convert_v1_DeploymentConfig_To_apps_DeploymentConfig(a, b, s)
306+
case *appsapi.DeploymentConfig:
307+
return true, appsapiv1.Convert_v1_DeploymentConfig_To_apps_DeploymentConfig(a, b, s)
308308
}
309-
case *deployapi.DeploymentConfig:
309+
case *appsapi.DeploymentConfig:
310310
switch b := objB.(type) {
311-
case *deployv1.DeploymentConfig:
312-
return true, deployv1.Convert_apps_DeploymentConfig_To_v1_DeploymentConfig(a, b, s)
311+
case *appsapiv1.DeploymentConfig:
312+
return true, appsapiv1.Convert_apps_DeploymentConfig_To_v1_DeploymentConfig(a, b, s)
313313
}
314314

315315
case *imagev1.ImageStream:

pkg/api/kubegraph/analysis/hpa.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/openshift/origin/pkg/api/kubegraph"
1616
kubeedges "github.com/openshift/origin/pkg/api/kubegraph"
1717
kubenodes "github.com/openshift/origin/pkg/api/kubegraph/nodes"
18-
deploygraph "github.com/openshift/origin/pkg/apps/graph"
19-
deploynodes "github.com/openshift/origin/pkg/apps/graph/nodes"
18+
appsgraph "github.com/openshift/origin/pkg/apps/graph"
19+
appsnodes "github.com/openshift/origin/pkg/apps/graph/nodes"
2020
)
2121

2222
const (
@@ -123,11 +123,11 @@ func FindOverlappingHPAs(graph osgraph.Graph, namer osgraph.Namer) []osgraph.Mar
123123
nodeFilter := osgraph.NodesOfKind(
124124
kubenodes.HorizontalPodAutoscalerNodeKind,
125125
kubenodes.ReplicationControllerNodeKind,
126-
deploynodes.DeploymentConfigNodeKind,
126+
appsnodes.DeploymentConfigNodeKind,
127127
)
128128
edgeFilter := osgraph.EdgesOfKind(
129129
kubegraph.ScalingEdgeKind,
130-
deploygraph.DeploymentEdgeKind,
130+
appsgraph.DeploymentEdgeKind,
131131
kubeedges.ManagedByControllerEdgeKind,
132132
)
133133

pkg/api/kubegraph/analysis/hpa_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
osgraph "github.com/openshift/origin/pkg/api/graph"
88
osgraphtest "github.com/openshift/origin/pkg/api/graph/test"
99
"github.com/openshift/origin/pkg/api/kubegraph"
10-
deploygraph "github.com/openshift/origin/pkg/apps/graph"
10+
appsgraph "github.com/openshift/origin/pkg/apps/graph"
1111
)
1212

1313
func TestHPAMissingCPUTargetError(t *testing.T) {
@@ -62,7 +62,7 @@ func TestOverlappingHPAsWarning(t *testing.T) {
6262
}
6363

6464
kubegraph.AddHPAScaleRefEdges(g)
65-
deploygraph.AddAllDeploymentEdges(g)
65+
appsgraph.AddAllDeploymentEdges(g)
6666

6767
markers := FindOverlappingHPAs(g, osgraph.DefaultNamer)
6868
if len(markers) != 8 {
@@ -87,7 +87,7 @@ func TestOverlappingLegacyHPAsWarning(t *testing.T) {
8787
}
8888

8989
kubegraph.AddHPAScaleRefEdges(g)
90-
deploygraph.AddAllDeploymentEdges(g)
90+
appsgraph.AddAllDeploymentEdges(g)
9191

9292
markers := FindOverlappingHPAs(g, osgraph.DefaultNamer)
9393
if len(markers) != 8 {

pkg/api/kubegraph/edge_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616

1717
osgraph "github.com/openshift/origin/pkg/api/graph"
1818
kubegraph "github.com/openshift/origin/pkg/api/kubegraph/nodes"
19-
deployapi "github.com/openshift/origin/pkg/apps/apis/apps"
19+
appsapi "github.com/openshift/origin/pkg/apps/apis/apps"
2020
_ "github.com/openshift/origin/pkg/apps/apis/apps/install"
21-
deploygraph "github.com/openshift/origin/pkg/apps/graph/nodes"
21+
appsgraph "github.com/openshift/origin/pkg/apps/graph/nodes"
2222
)
2323

2424
type objectifier interface {
@@ -186,13 +186,13 @@ func TestHPADCEdges(t *testing.T) {
186186
},
187187
}
188188

189-
dc := &deployapi.DeploymentConfig{}
189+
dc := &appsapi.DeploymentConfig{}
190190
dc.Name = "test-dc"
191191
dc.Namespace = "test-ns"
192192

193193
g := osgraph.New()
194194
hpaNode := kubegraph.EnsureHorizontalPodAutoscalerNode(g, hpa)
195-
dcNode := deploygraph.EnsureDeploymentConfigNode(g, dc)
195+
dcNode := appsgraph.EnsureDeploymentConfigNode(g, dc)
196196

197197
AddHPAScaleRefEdges(g)
198198

pkg/api/kubegraph/edges.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414

1515
osgraph "github.com/openshift/origin/pkg/api/graph"
1616
kubegraph "github.com/openshift/origin/pkg/api/kubegraph/nodes"
17-
deployapi "github.com/openshift/origin/pkg/apps/apis/apps"
18-
deploygraph "github.com/openshift/origin/pkg/apps/graph/nodes"
17+
appsapi "github.com/openshift/origin/pkg/apps/apis/apps"
18+
appsgraph "github.com/openshift/origin/pkg/apps/graph/nodes"
1919
)
2020

2121
const (
@@ -239,8 +239,8 @@ func AddHPAScaleRefEdges(g osgraph.Graph) {
239239
switch {
240240
case r == kapi.Resource("replicationcontrollers"):
241241
syntheticNode = kubegraph.FindOrCreateSyntheticReplicationControllerNode(g, &kapi.ReplicationController{ObjectMeta: syntheticMeta})
242-
case deployapi.IsResourceOrLegacy("deploymentconfigs", r):
243-
syntheticNode = deploygraph.FindOrCreateSyntheticDeploymentConfigNode(g, &deployapi.DeploymentConfig{ObjectMeta: syntheticMeta})
242+
case appsapi.IsResourceOrLegacy("deploymentconfigs", r):
243+
syntheticNode = appsgraph.FindOrCreateSyntheticDeploymentConfigNode(g, &appsapi.DeploymentConfig{ObjectMeta: syntheticMeta})
244244
default:
245245
continue
246246
}

0 commit comments

Comments
 (0)