mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Run collectors docs modified
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user