Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to turn on/off each mock #15

Open
bsquizz opened this issue Feb 19, 2021 · 0 comments
Open

Ability to turn on/off each mock #15

bsquizz opened this issue Feb 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@bsquizz
Copy link
Collaborator

bsquizz commented Feb 19, 2021

We should allow the option for you to turn off/on each mock

So for example you could deploy mocks with the env vars:

MOCK_RBAC=false
MOCK_ENTITLEMENTS=true

and then deploy the "real" rbac instead.

What needs to change is we should no longer define Service that "re-routes" applications to the mock in our template:
https://github.com/RedHatInsights/mocks/blob/master/deploy/template.yaml#L177-L190

And instead that Service should be 'oc apply'd by the mocks initializer into the namespace when the app starts up:
https://github.com/RedHatInsights/mocks/blob/master/crcmocks/initializer.py

As long as that Service which re-routes your apps to use the mock is absent, you should be good to go if you want to use the "real app" instead.

@bsquizz bsquizz added the enhancement New feature or request label Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant