Skip to content

Commit

Permalink
fix: replace CRLF
Browse files Browse the repository at this point in the history
* source from helm#110
  • Loading branch information
kamikazechaser committed Apr 13, 2024
1 parent 403d3ad commit 370d154
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/v3/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package v3
import (
"fmt"
"log"
"strings"

"github.com/pkg/errors"

Expand All @@ -44,7 +45,7 @@ func MapReleaseWithUnSupportedAPIs(mapOptions common.MapOptions) error {
}

log.Printf("Check release '%s' for deprecated or removed APIs...\n", releaseName)
var origManifest = releaseToMap.Manifest
var origManifest = strings.Replace(releaseToMap.Manifest, "\r\n", "\n", -1)
modifiedManifest, err := common.ReplaceManifestUnSupportedAPIs(origManifest, mapOptions.MapFile, mapOptions.KubeConfig)
if err != nil {
return err
Expand Down

0 comments on commit 370d154

Please sign in to comment.