Skip to content

Commit

Permalink
secret analyzer fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
manavellamnimble committed Sep 29, 2020
1 parent 437357f commit 53bd307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/analyze/secret.go
Expand Up @@ -9,7 +9,7 @@ import (
)

func analyzeSecret(analyzer *troubleshootv1beta2.AnalyzeSecret, getCollectedFileContents func(string) ([]byte, error)) (*AnalyzeResult, error) {
secretData, err := getCollectedFileContents(fmt.Sprintf("secrets/%s/%s/%s.json", analyzer.Namespace, analyzer.SecretName, analyzer.Key))
secretData, err := getCollectedFileContents(fmt.Sprintf("secrets/%s/%s.json", analyzer.Namespace, analyzer.SecretName))
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/collect/secret.go
Expand Up @@ -67,7 +67,7 @@ func secret(ctx context.Context, client *kubernetes.Clientset, secretCollector *
}

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

keyExists := false
keyData := ""
Expand Down

0 comments on commit 53bd307

Please sign in to comment.