Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popeye v0.21.3 #300

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME := popeye
PACKAGE := github.com/derailed/$(NAME)
VERSION := v0.21.2
VERSION := v0.21.3
GIT := $(shell git rev-parse --short HEAD)
DATE := $(shell date +%FT%T%Z)
IMG_NAME := derailed/popeye
Expand Down
25 changes: 25 additions & 0 deletions change_logs/release_v0.21.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/popeye_logo.png" align="right" width="200" height="auto"/>

# Release v0.21.3

## Notes

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!

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.

Also if you dig this tool, please make some noise on social! [@kitesurfer](https://twitter.com/kitesurfer)

---

## Maintenance Release

---

## Resolved Issues

. [#298](https://github.com/derailed/popeye/issues/298) Popeye showing errors for Complete cronjobs (with feelings!)

---

<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)
3 changes: 1 addition & 2 deletions internal/dao/ev.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ type EventInfo struct {
}

func (e EventInfo) IsIssue() bool {
return e.Kind == WarnEvt ||
(e.Reason != "Success" && e.Reason != "SawCompletedJob")
return e.Kind == WarnEvt
}

type EventInfos []EventInfo
Expand Down
3 changes: 3 additions & 0 deletions internal/issues/assets/codes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ codes:
1502:
message: CronJob has not run yet or is failing
severity: 2
1503:
message: "Warning found: %s"
severity: 2

# CiliumIdentity
1600:
Expand Down
2 changes: 1 addition & 1 deletion internal/issues/codes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestCodesLoad(t *testing.T) {
cc, err := issues.LoadCodes()

assert.Nil(t, err)
assert.Equal(t, 115, len(cc.Glossary))
assert.Equal(t, 116, len(cc.Glossary))
assert.Equal(t, "No liveness probe", cc.Glossary[103].Message)
assert.Equal(t, rules.WarnLevel, cc.Glossary[103].Severity)
}
Expand Down
4 changes: 1 addition & 3 deletions internal/lint/cronjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package lint

import (
"context"
"errors"

"github.com/derailed/popeye/internal"
"github.com/derailed/popeye/internal/cache"
Expand Down Expand Up @@ -107,9 +106,8 @@ func checkEvents(ctx context.Context, ii *issues.Collector, r internal.R, kind,
ii.AddErr(ctx, err)
return
}

for _, e := range ee.Issues() {
ii.AddErr(ctx, errors.New(e))
ii.AddCode(ctx, 1503, e)
}
}

Expand Down