-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Bug Report
What did you do?
When running
operator-sdk bundle validate ./bundle
or by using the Makefile
make bundle
the validation fails when having a service account defined which needs to exist in order to run a deployment.
Our setup consists of the deployment for the Operator itself and an additional deployment for a mutating webhook.
Since the webhook needs a separate service account for running properly we create it in our manifests and reference it for the kustiomization files.
When having that SA defined in the manifests and using it in the deployment the bundle validation fails with the following error msg:
ERRO[0000] Error: Value <service_account_name>: invalid service account found in bundle. sa name cannot match service account defined for deployment spec in CSV
Environment
Operator type:
/language go
operator-sdk version: "v1.12.0",
commit: "d3b2761afdb78f629a7eaf4461b0fb8ae3b02860",
kubernetes version: "v1.21",
go version: "go1.17",
Additional context
Example repo here:
https://github.com/Dynatrace/dynatrace-oneagent-operator