Skip to content

Commit

Permalink
update rev
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Aug 12, 2019
1 parent ecc6a97 commit f05fca1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Build...
FROM golang:1.12.3-alpine AS build

ENV VERSION=v0.3.0 GO111MODULE=on PACKAGE=github.com/derailed/popeye
ENV VERSION=v0.4.2 GO111MODULE=on PACKAGE=github.com/derailed/popeye

WORKDIR /go/src/$PACKAGE

Expand Down
17 changes: 17 additions & 0 deletions internal/issues/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func validSeverity(l Level) bool {

const codes = `
codes:
# -------------------------------------------------------------------------
# Container
100:
message: Untagged docker image in use
Expand Down Expand Up @@ -106,6 +107,8 @@ codes:
112:
message: Memory Current/Limit (%s/%s) reached user %d%% threshold (%d%%)
severity: 3
# -------------------------------------------------------------------------
# Pod
200:
message: Pod is terminating [%d/%d]
Expand All @@ -131,6 +134,8 @@ codes:
207:
message: Pod is in an unhappy phase (%s)
severity: 3
# -------------------------------------------------------------------------
# Security
300:
message: Using "default" ServiceAccount
Expand All @@ -150,6 +155,8 @@ codes:
305:
message: References a docker-image "%s" pull secret which does not exists
severity: 3
# -------------------------------------------------------------------------
# General
400:
message: Used? Unable to locate resource reference
Expand All @@ -172,6 +179,8 @@ codes:
406:
message: K8s version OK
severity: 0
# -------------------------------------------------------------------------
# Deployment + StatefulSet
500:
message: Zero scale detected
Expand Down Expand Up @@ -213,6 +222,8 @@ codes:
605:
message: If ALL HPAs triggered, %s will match/exceed cluster memory(%s) capacity by %s
severity: 2
# -------------------------------------------------------------------------
# Node
700:
message: Found taint "%s" but no pod can tolerate
Expand Down Expand Up @@ -247,6 +258,8 @@ codes:
710:
message: Memory threshold (%d%%) reached %d%%
severity: 2
# -------------------------------------------------------------------------
# Namespace
800:
message: Namespace is inactive
Expand All @@ -273,6 +286,8 @@ codes:
1004:
message: Lost claim detected
severity: 3
# -------------------------------------------------------------------------
# Service
1100:
message: No pods match service selector
Expand All @@ -292,6 +307,8 @@ codes:
1105:
message: No associated endpoints
severity: 3
# -------------------------------------------------------------------------
# NetworkPolicies
1200:
message: No pods matches %s pod selector
Expand Down

0 comments on commit f05fca1

Please sign in to comment.