Removed unwanted svcnames list

Transform function from both the providers has some unused
data structure so removed it.
This commit is contained in:
Suraj Deshmukh 2016-08-18 12:21:33 +05:30
parent 3e5ade4f6c
commit a03b6af50a
2 changed files with 0 additions and 6 deletions

View File

@ -216,14 +216,11 @@ func ConfigEnvs(name string, service kobject.ServiceConfig) []api.EnvVar {
}
func (k *Kubernetes) Transform(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) []runtime.Object {
var svcnames []string
// this will hold all the converted data
var allobjects []runtime.Object
for name, service := range komposeObject.ServiceConfigs {
var objects []runtime.Object
svcnames = append(svcnames, name)
if opt.CreateD {
objects = append(objects, InitD(name, service, opt.Replicas))

View File

@ -63,14 +63,11 @@ func initDeploymentConfig(name string, service kobject.ServiceConfig, replicas i
}
func (k *OpenShift) Transform(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) []runtime.Object {
var svcnames []string
// this will hold all the converted data
var allobjects []runtime.Object
for name, service := range komposeObject.ServiceConfigs {
var objects []runtime.Object
svcnames = append(svcnames, name)
if opt.CreateD {
objects = append(objects, kubernetes.InitD(name, service, opt.Replicas))