Skip to content

Commit

Permalink
Run collectors docs modified
Browse files Browse the repository at this point in the history
  • Loading branch information
manavellamnimble committed Oct 1, 2020
1 parent e9ba73d commit 213b524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/collect/run.go
Expand Up @@ -182,10 +182,10 @@ func createSecret(ctx context.Context, client *kubernetes.Clientset, imagePullSe
if len(imagePullSecret.Data) > 1 {
return errors.Errorf("Secret type kubernetes.io/dockerconfigjson accepts only one argument \".dockerconfigjson\"")
}
//K8s client accepts only Json formated files as data, provided data must be decoded and indented (indentation is required)
//K8s client accepts only Json formated files as data, provided data must be decoded and indented
parsedConfig, err := base64.StdEncoding.DecodeString(v)
if err != nil {
return errors.Wrap(err, "Secret's config file not found or unable to decode data.")
return errors.Wrap(err, "Unable to decode data.")
}
err = json.Indent(&out, parsedConfig, "", "\t")
if err != nil {
Expand Down

0 comments on commit 213b524

Please sign in to comment.