Closed phantomjinx closed 3 years ago
Tested 1.11.0
and 1.10.1
- both fail like 1.6.1
.
git bisect
showing regression
operator-sdk version: "scorecard-kuttl/v2.0.0-21-g163c6575", commit: "163c657565ad136fc1f6c453803e1af8306f0b63", kubernetes version: "v1.19.4", go version: "go1.15.8", GOOS: "linux", GOARCH: "amd64"
The result of the bug in Syndesis is that the manager directory is not included, leading to no deployment in the final bundle. The reason for this is that the manifest/kustomization.yaml
file does not include a ../default
path whereas the generated erroneous config/manifest/kustomization.yaml
version does.
This is a difference to my memcached-operator example because the deployment is included in its bundle since it does use the standard ./default
directory.
Anyway, have created a PR which solves the issue and works when outputDir
is both set and unset.
Closing this as we have the PR (https://github.com/operator-framework/operator-sdk/pull/5144) merged.
Bug Report
What did you do?
Syndesis project has been using operator-sdk 1.5.0 for bundle generation. Due to historical circumstances, the Makefile & PROJECT files were located in the config directory and all paths to
config/
were updated to.
.Therefore the command for generating the
config/manifests
directory looks like this:However, an update of the operator-sdk to 1.9.2 causes problems.
Rather than the existing
config/manifests
directory being observed and used, a new arbitraryconfig/config/manifests
directory is created instead. This means any customisations to the base CSV are ignored and the resulting bundle produced incorrectly.Reproduced Using memcached Tutorial
make bundle
---> Bundle created correctly and no new config directory;make bundle
--> Bundle created correctly and no new config directory;make bundle
--> Newconfig/config/manifests
directory created (commit).What did you expect to see?
make bundle
observe existingconfig/manifests
directory;config/config/manifests
directoryWhat did you see instead? Under which circumstances?
config/config/manifests
directory created from scratchEnvironment
Operator type:
/language go
Kubernetes cluster type:
$ operator-sdk version
$ go version
(if language is Go) go version go1.15.8 linux/amd64$ kubectl version
Client Version: 4.7.1 Server Version: 4.8.2 Kubernetes Version: v1.21.1+051ac4fPossible Solution
Code change between 1.5.1 and 1.6.1 meant
--input-dir
and/or--output-dir
no longer respected?