-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Testing with operator-sdk ?? #1336
Comments
@mjshariati98 Not yet. Besides the fact that SDK and Kubebuilder have different layouts for operator manifests, a Kubebuilder project's So while it might be possible, it would be troublesome to pass the However we are currently working to integrate Kubebuilder's scaffolding into the SDK so in the future it should be possible for
In the meanwhile you can try to use envtest for integration tests in your Kubebuilder project. And as for using the Operator SDK test-framework for non-SDK layouts, it's probably better if you can follow up by opening an issue on the SDK repo. |
@mjshariati98 If that answers your question feel free to close the issue. If not, you can follow up on the SDK repo if it's more specifically about the test-framework. |
@hasbro17 thanks for your answer. |
@mjshariati98 The envtest package might be a good place to start for operators using controller-runtime. And if it's a project scaffolded with the Operator SDK then you can take a look through the test-framework docs which walks through an example for writing e2e tests that will run against an actual cluster. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Closing this issue since after the SDK integrates Kubebuilder CLI, we're dropping support for test-framework in favor of envtest as the recommended way to write integration tests. (Not sure I have permissions to close the issue though) /close |
@hasbro17: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Is it possible to test an operator that weitten with kubebuilder, with oeprator-sdk framework for e2e testing ?
The text was updated successfully, but these errors were encountered: