Skip to content

Commit 53bd307

Browse files
secret analyzer fixed
1 parent 437357f commit 53bd307

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/analyze/secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
func analyzeSecret(analyzer *troubleshootv1beta2.AnalyzeSecret, getCollectedFileContents func(string) ([]byte, error)) (*AnalyzeResult, error) {
12-
secretData, err := getCollectedFileContents(fmt.Sprintf("secrets/%s/%s/%s.json", analyzer.Namespace, analyzer.SecretName, analyzer.Key))
12+
secretData, err := getCollectedFileContents(fmt.Sprintf("secrets/%s/%s.json", analyzer.Namespace, analyzer.SecretName))
1313
if err != nil {
1414
return nil, err
1515
}

pkg/collect/secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func secret(ctx context.Context, client *kubernetes.Clientset, secretCollector *
6767
}
6868

6969
ns = found.Namespace
70-
path = fmt.Sprintf("%s.json", filepath.Join(ns, secretCollector.SecretName, secretCollector.Key))
70+
path = fmt.Sprintf("%s.json", filepath.Join(ns, secretCollector.SecretName))
7171

7272
keyExists := false
7373
keyData := ""

0 commit comments

Comments
 (0)