Skip to content

Commit bd71222

Browse files
committed
Removing more unused code
1 parent 818f8b2 commit bd71222

28 files changed

+10
-2303
lines changed

cmd/preflight/cli/receive.go

Lines changed: 0 additions & 68 deletions
This file was deleted.

cmd/troubleshoot/cli/receive.go

Lines changed: 0 additions & 138 deletions
This file was deleted.

cmd/troubleshoot/cli/retrieve.go

Lines changed: 0 additions & 78 deletions
This file was deleted.

cmd/troubleshoot/cli/root.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cli
22

33
import (
4+
"io/ioutil"
45
"os"
56
"strings"
67

@@ -83,3 +84,11 @@ func ensureCollectorInList(list []*troubleshootv1beta1.Collect, collector troubl
8384

8485
return append(list, &collector)
8586
}
87+
88+
func writeFile(filename string, contents []byte) error {
89+
if err := ioutil.WriteFile(filename, contents, 0644); err != nil {
90+
return err
91+
}
92+
93+
return nil
94+
}

config/samples/troubleshoot_v1beta1_analyzerjob.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

config/samples/troubleshoot_v1beta1_collectorjob.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

config/samples/troubleshoot_v1beta1_preflightjob.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

pkg/analyze/text_analyze_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func Test_textAnalyze(t *testing.T) {
102102
IsPass: false,
103103
IsWarn: false,
104104
IsFail: true,
105-
Title: "",
105+
Title: "text-collector-3",
106106
Message: "Invalid analyzer",
107107
IconKey: "kubernetes_text_analyze",
108108
IconURI: "https://troubleshoot.sh/images/analyzer-icons/text-analyze.svg",

0 commit comments

Comments
 (0)