Skip to content

Commit

Permalink
Merge pull request #511 from kadel/fix-ingress-down
Browse files Browse the repository at this point in the history
add missing 'io.kompose.service' label to Route and Ingress
  • Loading branch information
cdrage authored Apr 12, 2017
2 parents 3dd41ec + f8da614 commit 0464d24
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 10 deletions.
3 changes: 2 additions & 1 deletion pkg/transformer/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ func (k *Kubernetes) initIngress(name string, service kobject.ServiceConfig, por
APIVersion: "extensions/v1beta1",
},
ObjectMeta: api.ObjectMeta{
Name: name,
Name: name,
Labels: transformer.ConfigLabels(name),
},
Spec: extensions.IngressSpec{
Rules: []extensions.IngressRule{
Expand Down
3 changes: 2 additions & 1 deletion pkg/transformer/openshift/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ func (o *OpenShift) initRoute(name string, service kobject.ServiceConfig, port i
APIVersion: "v1",
},
ObjectMeta: api.ObjectMeta{
Name: name,
Name: name,
Labels: transformer.ConfigLabels(name),
},
Spec: routeapi.RouteSpec{
Port: &routeapi.RoutePort{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "web",
"creationTimestamp": null
"creationTimestamp": null,
"labels": {
"io.kompose.service": "web"
}
},
"spec": {
"rules": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "web",
"creationTimestamp": null
"creationTimestamp": null,
"labels": {
"io.kompose.service": "web"
}
},
"spec": {
"rules": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "web",
"creationTimestamp": null
"creationTimestamp": null,
"labels": {
"io.kompose.service": "web"
}
},
"spec": {
"rules": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "web",
"creationTimestamp": null
"creationTimestamp": null,
"labels": {
"io.kompose.service": "web"
}
},
"spec": {
"rules": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@
"apiVersion": "v1",
"metadata": {
"name": "web",
"creationTimestamp": null
"creationTimestamp": null,
"labels": {
"io.kompose.service": "web"
}
},
"spec": {
"host": "batman.example.com",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@
"apiVersion": "v1",
"metadata": {
"name": "web",
"creationTimestamp": null
"creationTimestamp": null,
"labels": {
"io.kompose.service": "web"
}
},
"spec": {
"host": "batman.example.com",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@
"apiVersion": "v1",
"metadata": {
"name": "web",
"creationTimestamp": null
"creationTimestamp": null,
"labels": {
"io.kompose.service": "web"
}
},
"spec": {
"host": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@
"apiVersion": "v1",
"metadata": {
"name": "web",
"creationTimestamp": null
"creationTimestamp": null,
"labels": {
"io.kompose.service": "web"
}
},
"spec": {
"host": "",
Expand Down

0 comments on commit 0464d24

Please sign in to comment.