Skip to content

Commit

Permalink
fix: fix cf artifact type setting (#691)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashok Pon Kumar <[email protected]>
  • Loading branch information
ashokponkumar authored Dec 15, 2021
1 parent 1c303dd commit 7bd5372
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions transformer/containerizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
transformertypes "github.com/konveyor/move2kube/types/transformer"
"github.com/konveyor/move2kube/types/transformer/artifacts"
"github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/selection"
)
Expand Down Expand Up @@ -71,6 +72,8 @@ func getContainerizationConfig(projectDirectory, buildArtifacts []string, transf
if buildArtifacts != nil {
nos[0].Paths[artifacts.BuildArtifactPathType] = buildArtifacts
}
nos[0].ProcessWith = *metav1.AddLabelToSelector(&nos[0].ProcessWith, transformertypes.LabelName, string(nos[0].Type))
nos[0].Type = artifacts.ServiceArtifactType
return nos[0]
}
return transformertypes.Artifact{}
Expand Down

0 comments on commit 7bd5372

Please sign in to comment.