Skip to content

Commit 2370e65

Browse files
committed
Fix OLM install modes
Currently with OLM we claim to support `OwnNamespace`, `SingleNamespace`, and `AllNamespaces` install modes. However, only `OwnNamespace` works properly when deploying OpsManager. With other install modes, the operator is able to reconcile resources and create `StatefulSets` for the workloads in OpsManager, but pods never become healthy because only the operator's own namespace has the required `ServiceAccount`. With this change, we make the relevant `ServiceAccount` managed by OLM. This means the `ServiceAccount` and relevant roles will be created in all required namespaces.
1 parent 588fcb5 commit 2370e65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ bundle: manifests kustomize
388388
operator-sdk generate kustomize manifests -q
389389
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)\
390390
--channels=stable --default-channel=stable\
391+
--extra-service-accounts mongodb-kubernetes-appdb \
391392
--output-dir ./bundle/$(VERSION)/
392393
operator-sdk bundle validate ./bundle/$(VERSION)
393394

0 commit comments

Comments
 (0)