Skip to content

Commit

Permalink
Fix no-event-container issue not filtered and complement missing is…
Browse files Browse the repository at this point in the history
…sue specs. (#473)
  • Loading branch information
Gerrit91 authored Oct 16, 2023
1 parent 66cc986 commit 9b9d801
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/metal-api/internal/issues/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ func Find(c *Config) (MachineIssuesMap, error) {

ec, ok := ecs[m.ID]
if !ok {
res.add(m, toIssue(&issueNoEventContainer{}))
if c.includeIssue(TypeNoEventContainer) {
res.add(m, toIssue(&issueNoEventContainer{}))
}
continue
}

Expand Down
1 change: 1 addition & 0 deletions cmd/metal-api/internal/issues/liveliness-not-available.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func (i *issueLivelinessNotAvailable) Spec() *spec {
Type: TypeLivelinessNotAvailable,
Severity: SeverityMinor,
Description: "the machine liveliness is not available",
RefURL: "https://docs.metal-stack.io/stable/installation/troubleshoot/#liveliness-not-available",
}
}

Expand Down
1 change: 1 addition & 0 deletions cmd/metal-api/internal/issues/non-distinct-bmc-ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type (
func (i *issueNonDistinctBMCIP) Spec() *spec {
return &spec{
Type: TypeNonDistinctBMCIP,
Severity: SeverityMajor,
Description: "BMC IP address is not distinct",
RefURL: "https://docs.metal-stack.io/stable/installation/troubleshoot/#bmc-no-distinct-ip",
}
Expand Down

0 comments on commit 9b9d801

Please sign in to comment.