Skip to content

Commit

Permalink
Update helm_utils.go
Browse files Browse the repository at this point in the history
Signed-off-by: Ranjith M P <[email protected]>
  • Loading branch information
r1jt committed Oct 24, 2024
1 parent b650e96 commit 683ed19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/helm_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ func HelmGetValues(releaseName string, namespace string) ([]byte, error) {
// Save values for a release from helm command to a yaml file
func SaveHelmValues(releaseName string, namespace string, filePath string) error {
output, err := HelmGetValues(releaseName, namespace)
if err != nil {
return err
}
dir := filepath.Dir(filePath)
err = os.MkdirAll(dir, 0755) // Ensure intermediate directories are created
if err != nil {
Expand Down

0 comments on commit 683ed19

Please sign in to comment.