Skip to content

Commit f736e64

Browse files
authored
Merge pull request #300 from derailed/popeye/v0.21.3
Popeye v0.21.3
2 parents 2c72b1a + fb5ddd7 commit f736e64

File tree

6 files changed

+32
-7
lines changed

6 files changed

+32
-7
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NAME := popeye
22
PACKAGE := github.com/derailed/$(NAME)
3-
VERSION := v0.21.2
3+
VERSION := v0.21.3
44
GIT := $(shell git rev-parse --short HEAD)
55
DATE := $(shell date +%FT%T%Z)
66
IMG_NAME := derailed/popeye

change_logs/release_v0.21.3.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/popeye_logo.png" align="right" width="200" height="auto"/>
2+
3+
# Release v0.21.3
4+
5+
## Notes
6+
7+
Thank you to all that contributed with flushing out issues and enhancements for Popeye! I'll try to mark some of these issues as fixed. But if you don't mind grab the latest rev and see if we're happier with some of the fixes! If you've filed an issue please help me verify and close. Your support, kindness and awesome suggestions to make Popeye better is as ever very much noticed and appreciated!
8+
9+
This project offers a GitHub Sponsor button (over here 👆). As you well know this is not pimped out by big corps with deep pockets. If you feel `Popeye` is saving you cycles diagnosing potential cluster issues please consider sponsoring this project!! It does go a long way in keeping our servers lights on and beers in our fridge.
10+
11+
Also if you dig this tool, please make some noise on social! [@kitesurfer](https://twitter.com/kitesurfer)
12+
13+
---
14+
15+
## Maintenance Release
16+
17+
---
18+
19+
## Resolved Issues
20+
21+
. [#298](https://github.com/derailed/popeye/issues/298) Popeye showing errors for Complete cronjobs (with feelings!)
22+
23+
---
24+
25+
<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/imhotep_logo.png" width="32" height="auto"/>&nbsp; © 2024 Imhotep Software LLC. All materials licensed under [Apache v2.0](http://www.apache.org/licenses/LICENSE-2.0)

internal/dao/ev.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ type EventInfo struct {
2727
}
2828

2929
func (e EventInfo) IsIssue() bool {
30-
return e.Kind == WarnEvt ||
31-
(e.Reason != "Success" && e.Reason != "SawCompletedJob")
30+
return e.Kind == WarnEvt
3231
}
3332

3433
type EventInfos []EventInfo

internal/issues/assets/codes.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ codes:
347347
1502:
348348
message: CronJob has not run yet or is failing
349349
severity: 2
350+
1503:
351+
message: "Warning found: %s"
352+
severity: 2
350353

351354
# CiliumIdentity
352355
1600:

internal/issues/codes_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestCodesLoad(t *testing.T) {
1515
cc, err := issues.LoadCodes()
1616

1717
assert.Nil(t, err)
18-
assert.Equal(t, 115, len(cc.Glossary))
18+
assert.Equal(t, 116, len(cc.Glossary))
1919
assert.Equal(t, "No liveness probe", cc.Glossary[103].Message)
2020
assert.Equal(t, rules.WarnLevel, cc.Glossary[103].Severity)
2121
}

internal/lint/cronjob.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package lint
55

66
import (
77
"context"
8-
"errors"
98

109
"github.com/derailed/popeye/internal"
1110
"github.com/derailed/popeye/internal/cache"
@@ -107,9 +106,8 @@ func checkEvents(ctx context.Context, ii *issues.Collector, r internal.R, kind,
107106
ii.AddErr(ctx, err)
108107
return
109108
}
110-
111109
for _, e := range ee.Issues() {
112-
ii.AddErr(ctx, errors.New(e))
110+
ii.AddCode(ctx, 1503, e)
113111
}
114112
}
115113

0 commit comments

Comments
 (0)