-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Bug Report
What did you do?
When running make bundle
operator-sdk creates the CSV file and uses the base to fill fields like the description.
However with a folder structure like this
config/
-- /Common
--- /someFeature
---- roles.yaml
---- sa.yaml
---- ...
-- /Kubernetes
--- /someFeature
---- roles.yaml
---- sa.yaml
---- ...
-- /Openshift
--- /someFeature
---- roles.yaml
---- sa.yaml
---- ...
the bundle command only places the corresponding role and clusterrole for the operator itself into the CSV but all the others do not get moved into the CSV. When defining a specific namespace on the ClusterRoleBinding this leads to a problem because if installed into a different namespace with OLM the ClusterRoleBinding, Role and ServiceAccount still directs to the hard coded namespace.
What did you expect to see?
All the RBACs should be moved into the CSV to not depend on hard coded namespaces within bindings.
Environment
Operator type:
operator-sdk version: "v1.5.0",
commit: "98f30d59ade2d911a7a8c76f0169a7de0dec37a0",
kubernetes version: "v1.19.4",
go version: "go1.16.1"
/language go