@ -55,7 +55,7 @@ import (
"helm.sh/helm/v3/pkg/storage/driver"
"helm.sh/helm/v3/pkg/storage/driver"
)
)
// NOTESFILE_SUFFIX that we want to treat special. It goes through the templating engine
// notesFileSuffix that we want to treat special. It goes through the templating engine
// but it's not a yaml file (resource) hence can't have hooks, etc. And the user actually
// but it's not a yaml file (resource) hence can't have hooks, etc. And the user actually
// wants to see this file after rendering in the status command. However, it must be a suffix
// wants to see this file after rendering in the status command. However, it must be a suffix
// since there can be filepath in front of it.
// since there can be filepath in front of it.
@ -307,7 +307,7 @@ func (i *Install) RunWithContext(ctx context.Context, chrt *chart.Chart, vals ma
}
}
if driver . ContainsSystemLabels ( i . Labels ) {
if driver . ContainsSystemLabels ( i . Labels ) {
return nil , fmt . Errorf ( "user sup lied labels contains system reserved label name. System labels: %+v", driver . GetSystemLabels ( ) )
return nil , fmt . Errorf ( "user sup p lied labels contains system reserved label name. System labels: %+v", driver . GetSystemLabels ( ) )
}
}
rel := i . createRelease ( chrt , vals , i . Labels )
rel := i . createRelease ( chrt , vals , i . Labels )
@ -389,7 +389,7 @@ func (i *Install) RunWithContext(ctx context.Context, chrt *chart.Chart, vals ma
}
}
}
}
// If Replace is true, we need to super c ede the last release.
// If Replace is true, we need to super s ede the last release.
if i . Replace {
if i . Replace {
if err := i . replaceRelease ( rel ) ; err != nil {
if err := i . replaceRelease ( rel ) ; err != nil {
return nil , err
return nil , err
@ -631,7 +631,7 @@ func createOrOpenFile(filename string, append bool) (*os.File, error) {
return os . Create ( filename )
return os . Create ( filename )
}
}
// check if the directory exists to create file. creates if don't exist s
// check if the directory exists to create file. creates if don't exist
func ensureDirectoryForFile ( file string ) error {
func ensureDirectoryForFile ( file string ) error {
baseDir := path . Dir ( file )
baseDir := path . Dir ( file )
_ , err := os . Stat ( baseDir )
_ , err := os . Stat ( baseDir )