https://github.com/operator-framework/tekton-scorecard-image
a SDK Scorecard custom image for the tekton operator
https://github.com/operator-framework/tekton-scorecard-image
Last synced: about 1 month ago
JSON representation
a SDK Scorecard custom image for the tekton operator
- Host: GitHub
- URL: https://github.com/operator-framework/tekton-scorecard-image
- Owner: operator-framework
- License: apache-2.0
- Created: 2020-12-14T19:14:50.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-09T19:13:26.000Z (over 4 years ago)
- Last Synced: 2024-12-25T20:26:16.491Z (12 months ago)
- Language: Java
- Size: 189 KB
- Stars: 1
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tekton-scorecard-image
a SDK Scorecard custom image for the tekton operator
This is an example of an operator-sdk scorecard custom
test image. It is designed specifically to test the
tekton pipeline operator.
The included Makefile has targets to build and run the
scorecard tests.
## Build the image
```
make image-build
```
## Setup the Required RBAC for the Tests
```
make installrbac
```
## Run the Scorecard Tests
```
make runtests
```
## Custom Test Notes
This repo is meant to be an example of how to write some
operator-sdk scorecard custom tests. In particular, this
example runs some tests for the tekton operator.
The following custom tests are implemented:
| Test Name | Description |
| ----------- | ----------- |
| operatorrunning | This is a test that verifies the tekton operator is running, if they are running, the test passes. |
| tasksuccess | This test creates a Task and then a TaskRun, it then sees if the TaskRun completes successfully. The test cleans up the Task and TaskRun resources after it runs. |
You can see how the scorecard tests are configured by
examining the config.yaml file in the included sample bundle
directory. Also, make note of the scorecard command syntax
as found in the Makefile.