RedHatInsights / mocks

Mock services for testing cloud.redhat.com applications
4 stars 10 forks source link

Support for self-initializing when running in k8s #10

Closed bsquizz closed 3 years ago

bsquizz commented 3 years ago

When the mocks service is started with env var INITIALIZE_FE=true or INITIALIZE_GW=true it will attempt to use oc to configure the front-end aggregator and/or gateway (apicast) deployments running in its same namespace.

This requires the pod to be deployed using a special service account that is using a customized Role/RoleBinding