-
Notifications
You must be signed in to change notification settings - Fork 21
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
Received events from real cluster using @EnableMockOperator #27
Comments
yes, that should be the case AFAIK |
From my perspective, using Following the docs I've found that is possible with some changes:
In order to use the defined kubernetes client inside the operator. Then in the test we enable the profile
In this way, during the test, the operator use the mocked kubernetes client defined by |
It does not, pls take a look on the following test, that tests the starter: It uses the mock api server in the background. Although in some more complex integration test cases it might be useful to use Minikube or Kind.
actually event this is not needed, will update the docs. |
Nice! it's simpler, thanks |
Running a simple test using
@EnableMockOperator
annotation:At the beginning of the execution, my reconciler receives events for each custom resource from my real kubernetes cluster (configured in
.kube/config
).Is this correct?
The text was updated successfully, but these errors were encountered: