-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[WIP] OSDOCS-2210: OSDK-1713 Custom Scorecard storage feature #36751
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// * operators/operator_sdk/osdk-scorecard.adoc | ||
|
||
:osdk_ver: v1.16.0 | ||
|
||
:_content-type: PROCEDURE | ||
[id="osdk-scorecard-store-output_{context}"] | ||
= Storing scorecard test results | ||
|
||
You can enable local storage of scorecard test results by using the `scorecard` command or by modifying your `config.yaml` file. | ||
|
||
[IMPORTANT] | ||
==== | ||
There is a known issue with the Operator SDK scorecard storage utility. Currently, running the `operator-sdk scorecard` command with the `--test-output` flag returns an empty directory. There is no known workaround at this time. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2017669[*BZ#2017669*]) | ||
==== | ||
|
||
.Procedure | ||
|
||
. If you want to run a scorecard test from the command line and store the results, run the following command in a terminal window: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ operator-sdk scorecard <bundle_directory_or_image> --test-output=/<output_directory> <.> | ||
---- | ||
<.> Define the output directory. | ||
|
||
+ | ||
If you do not specify a directory, the command stores the test results in the `test-output` directory of your working directory. | ||
|
||
. If you want to enable local storage in your configuration file, add the following to your `config.yaml` file: | ||
+ | ||
[source,terminal] | ||
---- | ||
tests: | ||
michaelryanpeter marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
- entrypoint: | ||
- scorecard-test | ||
- <test_entrypoint> <.> | ||
image: quay.io/operator-framework/scorecard-test:v1.10.0 | ||
labels: | ||
suite: <test_suite> <.> | ||
test: <test_name> <.> | ||
storage: | ||
spec: | ||
mountPath: | ||
path: /<output_directory> <.> | ||
---- | ||
<.> Replace `<test_entrypoint>` with the command and arguments that you want to run, such as `scorecared-test`. | ||
<.> Define the test suite that you want to run, such as `olm`. | ||
<.> Define the test name that you want to run, such as `olm-bundle-validation-test`. | ||
<.> Set the the location of directory to store your test results, such as `test-results`. | ||
|
||
:!osdk_ver: |
Uh oh!
There was an error while loading. Please reload this page.