Skip to content

Commit 8832a9e

Browse files
committed
Rel v0.21.0
1 parent 908ea9a commit 8832a9e

File tree

10 files changed

+150
-327
lines changed

10 files changed

+150
-327
lines changed

.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ builds:
3030
archives:
3131
- name_template: >-
3232
{{ .ProjectName }}_
33-
{{- title .Os }}_
33+
{{- .Os }}_
3434
{{- if eq .Arch "amd64" }}amd64
3535
{{- else if eq .Arch "386" }}i386
3636
{{- else }}{{ .Arch }}{{ end }}

.krew.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,41 @@ spec:
2525
matchLabels:
2626
os: darwin
2727
arch: amd64
28-
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Darwin_amd64.tar.gz" .TagName | indent 6 }}
28+
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_darwin_amd64.tar.gz" .TagName | indent 6 }}
2929
bin: kubectl-popeye
3030
- selector:
3131
matchLabels:
3232
os: darwin
3333
arch: arm64
34-
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Darwin_arm64.tar.gz" .TagName | indent 6 }}
34+
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_darwin_arm64.tar.gz" .TagName | indent 6 }}
3535
bin: kubectl-popeye
3636
- selector:
3737
matchLabels:
3838
os: linux
3939
arch: amd64
40-
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Linux_amd64.tar.gz" .TagName | indent 6}}
40+
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_linux_amd64.tar.gz" .TagName | indent 6}}
4141
bin: kubectl-popeye
4242
- selector:
4343
matchLabels:
4444
os: linux
4545
arch: arm64
46-
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Linux_arm64.tar.gz" .TagName | indent 6 }}
46+
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_linux_arm64.tar.gz" .TagName | indent 6 }}
4747
bin: kubectl-popeye
4848
- selector:
4949
matchLabels:
5050
os: windows
5151
arch: amd64
52-
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Windows_amd64.tar.gz" .TagName | indent 6 }}
52+
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_windows_amd64.tar.gz" .TagName | indent 6 }}
5353
bin: kubectl-popeye.exe
5454
- selector:
5555
matchLabels:
5656
os: windows
5757
arch: arm64
58-
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_Windows_arm64.tar.gz" .TagName | indent 6 }}
58+
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_windows_amd64.tar.gz" .TagName | indent 6 }}
5959
bin: kubectl-popeye.exe
60+
- selector:
61+
matchLabels:
62+
os: windows
63+
arch: arm64
64+
{{ addURIAndSha "https://github.com/derailed/popeye/releases/download/{{ .TagName }}/popeye_windows_arm64.tar.gz" .TagName | indent 6 }}
65+
bin: kubectl-popeye.exe

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.20.5
3+
VERSION := v0.21.0
44
GIT := $(shell git rev-parse --short HEAD)
55
DATE := $(shell date +%FT%T%Z)
66
IMG_NAME := derailed/popeye

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,11 @@ popeye:
425425
- fqns: [blee-ns]
426426
codes: [106] # => skip code 106 for namespace blee-ns
427427
428+
# Skip secrets in namespace bozo.
429+
secrets:
430+
instances:
431+
- fqns: [rx:^bozo]
432+
428433
# Configure the pods linter for v1/pods.
429434
pods:
430435
instances:

change_logs/release_v0.21.0.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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.0
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+
. [#293](https://github.com/derailed/popeye/issues/293) Spinach documentation
22+
. [#263](https://github.com/derailed/popeye/issues/263) Fix automated action to push releases to krew
23+
24+
---
25+
26+
## Contributed PRs
27+
28+
Please give `Big Thanks!` and `ATTA Girls/Boys!` to all the fine contributors for making Popeye better for all of us!!
29+
30+
* [PR #294](https://github.com/derailed/popeye/pull/294) Krew manifest update
31+
32+
---
33+
34+
<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)

spinach-examples/spinach_aks.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# A Sample AKS Popeye configuration.
2+
popeye:
3+
allocations:
4+
cpu:
5+
# Checks if cpu is under allocated by more than 200% at current load.
6+
underPercUtilization: 200
7+
# Checks if cpu is over allocated by more than 50% at current load.
8+
overPercUtilization: 50
9+
memory:
10+
# Checks if mem is under allocated by more than 200% at current load.
11+
underPercUtilization: 200
12+
# Checks if mem is over allocated by more than 50% at current load.
13+
overPercUtilization: 50
14+
15+
# Excludes define rules to exampt resources from sanitization
16+
excludes:
17+
global:
18+
fqns: [rx:kube-system]
19+
20+
linters:
21+
clusterrolebindings:
22+
instances:
23+
- fqns: [rx:system, rx:aks, rx:omsagent]
24+
25+
clusterroles:
26+
instances:
27+
- fqns: [omsagent-reader, system, admin, edit, view, cluster-admin]
28+
codes: [400]
29+
30+
resources:
31+
# Nodes specific sanitization
32+
node:
33+
limits:
34+
cpu: 90
35+
memory: 80
36+
37+
# Pods specific sanitization
38+
pod:
39+
limits:
40+
# Fail if cpu is over 80%
41+
cpu: 80
42+
# Fail if pod mem is over 75%
43+
memory: 75
44+
# Fail if more than 3 restarts on any pods
45+
restarts: 3
46+
47+
# Code specifies a custom severity level ie critical=3, warn=2, info=1
48+
overrides:
49+
- codes: 206
50+
severity: 1

spinach-examples/spinach_eks.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# A Sample EKS Popeye configuration.
2+
popeye:
3+
allocations:
4+
cpu:
5+
# Checks if cpu is under allocated by more than 200% at current load.
6+
underPercUtilization: 200
7+
# Checks if cpu is over allocated by more than 50% at current load.
8+
overPercUtilization: 50
9+
memory:
10+
# Checks if mem is under allocated by more than 200% at current load.
11+
underPercUtilization: 200
12+
# Checks if mem is over allocated by more than 50% at current load.
13+
overPercUtilization: 50
14+
15+
# Excludes define rules to exampt resources from sanitization
16+
excludes:
17+
global:
18+
fqns: [rx:^kube-system,rx:^local-path-storage]
19+
20+
linters:
21+
clusterroles:
22+
instances:
23+
- fqns: [rx:^eks,rx:^aws-node,rx:^system,admin,edit,view,cluster-admin]
24+
codes: [400]
25+
26+
resources:
27+
# Nodes specific sanitization
28+
node:
29+
limits:
30+
cpu: 90
31+
memory: 80
32+
33+
# Pods specific sanitization
34+
pod:
35+
limits:
36+
# Fail if cpu is over 80%
37+
cpu: 80
38+
# Fail if pod mem is over 75%
39+
memory: 75
40+
# Fail if more than 3 restarts on any pods
41+
restarts: 3
42+
43+
44+
# Code specifies a custom severity level ie critical=3, warn=2, info=1
45+
overrides:
46+
- codes: 206
47+
severity: 1

spinach/spinach_aks.yml

-87
This file was deleted.

spinach/spinach_eks.yml

-91
This file was deleted.

0 commit comments

Comments
 (0)