Skip to content

Commit

Permalink
fix: remove some code nits
Browse files Browse the repository at this point in the history
Signed-off-by: AhmedGrati <[email protected]>
  • Loading branch information
TessaIO committed Jul 13, 2023
1 parent c81a485 commit c90037e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions pkg/transformer/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ func (k *Kubernetes) InitSvc(name string, service kobject.ServiceConfig) *api.Se

// InitConfigMapForEnv initializes a ConfigMap object
func (k *Kubernetes) InitConfigMapForEnv(name string, opt kobject.ConvertOptions, envFile string) *api.ConfigMap {
ns := "default"
if opt.Namespace != "" {
ns = opt.Namespace
}
envs, err := GetEnvsFromFile(envFile, opt)
if err != nil {
log.Fatalf("Unable to retrieve env file: %s", err)
Expand All @@ -241,7 +237,6 @@ func (k *Kubernetes) InitConfigMapForEnv(name string, opt kobject.ConvertOptions
},
ObjectMeta: metav1.ObjectMeta{
Name: envName,
Namespace: ns,
Labels: transformer.ConfigLabels(name + "-" + envName),
},
Data: envs,
Expand Down
1 change: 0 additions & 1 deletion pkg/transformer/openshift/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ func (o *OpenShift) Transform(komposeObject kobject.KomposeObject, opt kobject.C
for _, keyName := range noSupKeys {
log.Warningf("OpenShift provider doesn't support %s key - ignoring", keyName)
}

// this will hold all the converted data
var allobjects []runtime.Object

Expand Down

0 comments on commit c90037e

Please sign in to comment.