Skip to content

Commit a578949

Browse files
ingres analyzer fixed
1 parent 4149e4d commit a578949

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/analyze/ingress.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package analyzer
33
import (
44
"encoding/json"
55
"fmt"
6+
"path"
67

78
troubleshootv1beta2 "github.com/replicatedhq/troubleshoot/pkg/apis/troubleshoot/v1beta2"
89
extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
910
)
1011

1112
func analyzeIngress(analyzer *troubleshootv1beta2.Ingress, getCollectedFileContents func(string) ([]byte, error)) (*AnalyzeResult, error) {
12-
ingressData, err := getCollectedFileContents("cluster-resources/storage-classes.json")
13+
ingressData, err := getCollectedFileContents(path.Join("cluster-resources", "ingress", fmt.Sprintf("%s.json", analyzer.Namespace)))
1314
if err != nil {
1415
return nil, err
1516
}

0 commit comments

Comments
 (0)