-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/pkg/scorecard: implement plugin system
- Loading branch information
1 parent
690cc27
commit bea1688
Showing
7 changed files
with
187 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"kind": "ScorecardOutput", | ||
"apiVersion": "scorecard/v1alpha1", | ||
"metadata": { | ||
"creationTimestamp": null | ||
}, | ||
"log": "", | ||
"results": [ | ||
{ | ||
"name": "Custom Scorecard", | ||
"description": "Custom operator scorecard tests", | ||
"error": 0, | ||
"pass": 1, | ||
"partialPass": 1, | ||
"fail": 0, | ||
"totalTests": 2, | ||
"totalScorePercent": 71, | ||
"tests": [ | ||
{ | ||
"state": "partial_pass", | ||
"name": "Operator Actions Reflected In Status", | ||
"description": "The operator updates the Custom Resources status when the application state is updated", | ||
"earnedPoints": 2, | ||
"maximumPoints": 3, | ||
"suggestions": [ | ||
"Operator should update status when scaling cluster down" | ||
], | ||
"errors": [] | ||
}, | ||
{ | ||
"state": "pass", | ||
"name": "Verify health of cluster", | ||
"description": "The cluster created by the operator is working properly", | ||
"earnedPoints": 1, | ||
"maximumPoints": 1, | ||
"suggestions": [], | ||
"errors": [] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
cat ./assets/output.json |