add missing 'io.kompose.service' label to Route and Ingress

This was caussing 'kompose down' not to delete Route and Ingress
This commit is contained in:
Tomas Kral
2017-03-24 14:42:53 +01:00
parent 3c3ae9807a
commit f8da61436e
10 changed files with 36 additions and 10 deletions
+2 -1
View File
@@ -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{
+2 -1
View File
@@ -280,7 +280,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{