Skip to content

Commit

Permalink
Merge pull request #300 from derailed/popeye/v0.21.3
Browse files Browse the repository at this point in the history
Popeye v0.21.3
  • Loading branch information
derailed committed Mar 27, 2024
2 parents 2c72b1a + fb5ddd7 commit f736e64
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -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
@@ -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
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
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
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
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

0 comments on commit f736e64

Please sign in to comment.