operator-name in csv-config.yaml is ignored #2266
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
olm-integration
Issue relates to the OLM integration
Bug Report
What did you do?
I ran this command:
with
hack/csv-config.yaml
:Note that, operator's directory name does not match the operator name in
csv-config.yaml
.Operator directory is called
eventing-operator
.What did you expect to see?
deploy/olm-catalog/knative-eventing-operator/0.10.2
.name
field asknative-eventing-operator.v0.10.2
What did you see instead? Under which circumstances?
deploy/olm-catalog/eventing-operator/0.10.2
.name
field aseventing-operator.v0.10.2
Environment
operator-sdk version: "v0.12.0", commit: "2445fcda834ca4b7cf0d6c38fba6317fb219b469", go version: "go1.13.3 linux/amd64"
go version go1.13.3 linux/amd64
This operator is not an Operator-SDK based operator. However, I think the
gen-csv
feature can still be used if some improvements are done.Possible Solution
Pass
--operator-name
param.Additional context
Operator name is read as the directory name here:
operator-sdk/cmd/operator-sdk/olmcatalog/gen-csv.go
Line 94 in 424a61d
I guess that is carried over!
The text was updated successfully, but these errors were encountered: