Skip to content

Commit

Permalink
cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Mar 1, 2020
1 parent 49f4476 commit a86fdb2
Show file tree
Hide file tree
Showing 18 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ assignees: ''
---


<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/popeye.png" align="right" width="100" height="auto"/>
<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/popeye_bug.png" align="right" width="100" height="auto"/>

<br/>
<br/>
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/popeye.png" align="right" width="100" height="auto"/>
<img src="https://raw.githubusercontent.com/derailed/popeye/master/assets/popeye_feature.png" align="right" width="100" height="auto"/>

<br/>
<br/>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="assets/popeye.png" align="right" width="250" heigh="auto">
<img src="assets/popeye_logo.png" align="right" width="250" heigh="auto">

# Popeye - A Kubernetes Cluster Sanitizer

Expand Down
Binary file removed assets/popeye.png
Binary file not shown.
Binary file added assets/popeye_bug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/popeye_feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/popeye_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions internal/issues/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (i Issues) MaxSeverity() config.Level {
return max
}

// Sort sorts issues.
func (i Issues) Sort(l config.Level) Issues {
ii := make(Issues, 0, len(i))
gg := i.Group()
Expand Down
2 changes: 1 addition & 1 deletion internal/report/assets/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
<div class="title">Popeye K8s Sanitizer Report</div>
<div class="summary">
<a class="popeye-logo" href="https://github.com/derailed/popeye">
<img class="logo" src="https://github.com/derailed/popeye/raw/master/assets/popeye.png" />
<img class="logo" src="https://github.com/derailed/popeye/raw/master/assets/popeye_logo.png" />
</a>
<div class="score-summary">
Scanned
Expand Down
1 change: 1 addition & 0 deletions internal/report/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ func (b *Builder) PrintReport(level config.Level, s *Sanitizer) {
// ----------------------------------------------------------------------------
// Helpers...

// Titelize renders a section title.
func Titleize(a *internal.Aliases, res string, count int) string {
res = a.FromAlias(res)
if count <= 0 || res == "general" {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestNewConfig(t *testing.T) {

func TestNewConfigWithFile(t *testing.T) {
var (
dir = "assets/sp1.yml"
dir = "testdata/sp1.yml"
ss = []string{"s1", "s2"}
f = NewFlags()
)
Expand Down Expand Up @@ -53,7 +53,7 @@ func TestNewConfigWithFile(t *testing.T) {

func TestNewConfigNoResourceSpec(t *testing.T) {
var (
dir = "assets/sp2.yml"
dir = "testdata/sp2.yml"
f = NewFlags()
)
f.Spinach = &dir
Expand All @@ -69,7 +69,7 @@ func TestNewConfigNoResourceSpec(t *testing.T) {

func TestNewConfigFileToast(t *testing.T) {
var (
dir = "assets/sp_old.yml"
dir = "testdata/sp_old.yml"
f = NewFlags()
)
f.Spinach = &dir
Expand All @@ -80,7 +80,7 @@ func TestNewConfigFileToast(t *testing.T) {

func TestNewConfigFileNoExists(t *testing.T) {
var (
dir = "assets/spinach.yml"
dir = "testdata/spinach.yml"
f = NewFlags()
)
f.Spinach = &dir
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions pkg/popeye.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,12 @@ type readWriteCloser struct {
io.ReadWriter
}

// Close close read stream.
func (wC readWriteCloser) Close() error {
return nil
}

// NopWriter fake writer.
func NopWriter(i io.ReadWriter) io.ReadWriteCloser {
return &readWriteCloser{i}
}
Expand Down

0 comments on commit a86fdb2

Please sign in to comment.