Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Ability to turn on/off each mock #15

Description

@bsquizz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions