Skip to content

Commit

Permalink
Remove redundant comment task2 (fluid-cloudnative#298)
Browse files Browse the repository at this point in the history
* modify the comments of GenerateHelmTemplate in helm.go

* delete the redundant blank line

* add space between // and content
  • Loading branch information
yifanQi98 authored Nov 3, 2020
1 parent 1d14754 commit 31f2ca0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/utils/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ func GenerateValueFile(values interface{}) (valueFileName string, err error) {
return valueFileName, err
}

/**
* generate helm template without tiller: helm template -f values.yaml chart_name
* Exec /usr/local/bin/helm, [template -f /tmp/values313606961 --namespace default --name hj /charts/tf-horovod]
* returns generated template file: templateFileName
*/
// GenerateHelmTemplate generates helm template without tiller: helm template -f values.yaml chart_name
// Exec /usr/local/bin/helm, [template -f /tmp/values313606961 --namespace default --name hj /charts/tf-horovod]
// returns generated template file: templateFileName
func GenerateHelmTemplate(name string, namespace string, valueFileName string, chartName string, options ...string) (templateFileName string, err error) {
tempName := fmt.Sprintf("%s.yaml", name)
templateFile, err := ioutil.TempFile("", tempName)
Expand Down

0 comments on commit 31f2ca0

Please sign in to comment.