-
Notifications
You must be signed in to change notification settings - Fork 65
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
Propose external library for sharing logic for operator checks #639
Comments
Maybe it doesn't even need to be that extreme as the full check being broken out but possibly just the engine(s). The wrapper around the operator-sdk commands would be cool to be able to consume for example: https://github.com/redhat-openshift-ecosystem/openshift-preflight/blob/main/certification/internal/engine/operatorsdk.go |
I have been working on implementing this the last couple of weeks and I think I'm at the point where I'm ready to demo/ask additional questions of the preflight team to help me complete the work. Here is my WIP PoC PR for the work in the TNF suite: redhat-best-practices-for-k8s/certsuite#592 Essentially what I'm doing is trying to expose the functionality already living in preflight to be able to be consumed by the TNF suite. Currently the preflight repo uses its What I did is break the the cobra/viper logic away from the test builder logic and put that into the "lib" package and corresponding folder/files. By doing this, I can reference the The TNF repo also uses Ginkgo so I report the results in the claim file output and it looks like a native test was ran as part of the TNF code. Outstanding questions I need some clarification on:
|
Just to provide some clarity, the Pyxis credentials are used for I will also note that if only |
I'm going to mark this issue as closed. We're currently tidying up and refactoring to get this merged into main, but the work done by @sebrandon1 here is merged to main, and the library can be consumed in the lib branch until it's merged to main in its final form! |
Thanks @komish! |
Is your feature request related to a problem? Please describe.
The CNF Test Suite team and the Preflight team are both working to verify customer workloads and we would like to use some of the logic/checks that the preflight repo does for operators (and maybe even containers) from here and bring that same logic into the CNF test suite.
Describe the solution you'd like.
Some sort of consumable, external library (redhat-openshift-ecosystem/preflight-lib or some-name) where we can share the logic for performing checks against customer workloads. We could/should also think about sharing the logic we have on our side as well for some additional collaboration.
The text was updated successfully, but these errors were encountered: