Migrate to checker-sdk-go v1.3.0 with standalone build tag
The SDK split the HTTP server scaffolding into the new checker-sdk-go/checker/server subpackage and CheckRule.Evaluate now returns []CheckState. Update main.go to import server and call server.New, switch the rule and the package-level Evaluate helper to the new slice return type, and isolate the interactive form code behind the standalone build tag so plugin/builtin builds skip net/http and html/template entirely.
This commit is contained in:
parent
00de0f9780
commit
d4c1ac348a
10 changed files with 157 additions and 18 deletions
|
|
@ -164,7 +164,7 @@ func (p *delegationProvider) Collect(ctx context.Context, opts sdk.CheckerOption
|
|||
if len(dsMissing) > 0 || len(dsExtra) > 0 {
|
||||
sev := SeverityCrit
|
||||
if len(declaredDS) == 0 {
|
||||
// Service does not declare any DS but parent has some — warn only.
|
||||
// Service does not declare any DS but parent has some, warn only.
|
||||
sev = SeverityWarn
|
||||
}
|
||||
data.Findings = append(data.Findings, DelegationFinding{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue