@@ -88,7 +88,7 @@ func (meta *BundleMetaData) GenerateMetadata() error {
88
88
// Create annotation values for both bundle.Dockerfile and annotations.yaml, which should
89
89
// hold the same set of values always.
90
90
values := annotationsValues {
91
- BundleDir : filepath . Base ( meta .BundleDir ) ,
91
+ BundleDir : meta .BundleDir ,
92
92
PackageName : meta .PackageName ,
93
93
Channels : meta .Channels ,
94
94
DefaultChannel : meta .DefaultChannel ,
@@ -107,11 +107,13 @@ func (meta *BundleMetaData) GenerateMetadata() error {
107
107
}
108
108
109
109
dockerfilePath := defaultBundleDockerfilePath
110
- // If migrating from packagemanifests to bundle, bundle.Docker file is present
111
- // inside bundleDir, else its in the project directory.
110
+ // If migrating from packagemanifests to bundle, bundle.Dockerfile is present
111
+ // inside bundleDir, else its in the project directory. Hence dockerfile
112
+ // should have the path specified with respect to output directory of resulting bundles.
112
113
// Remmove this, when pkgman-to-bundle migrate command is removed.
113
114
if len (meta .PkgmanifestPath ) != 0 {
114
115
dockerfilePath = filepath .Join (filepath .Dir (meta .BundleDir ), "bundle.Dockerfile" )
116
+ values .BundleDir = filepath .Base (meta .BundleDir )
115
117
}
116
118
117
119
templateMap := map [string ]* template.Template {
0 commit comments