Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Lazarev committed Sep 8, 2021
1 parent 4827938 commit 24e06df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ vendor
.vscode
assets
.DS_Store
render-values
render-values
releases
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,17 @@ myapp:

**importValuesFrom** - is a keyword for list with sources for Values to render it

## Notes

go template [Actions](https://pkg.go.dev/text/template#hdr-Actions) could be used but yaml should we readable for yaml-parsers. So easest way to do it is using comment befor actions "#"
like this:
```
myapp:
# {{ if .Values.istio }}
virtualService: {{ .Values.hostname }}
# {{ else }}
ingress: {{ .Values.hostname }}
# {{end }}
```

Don't use helm function for trim sapces "{{-" or "-}}" - it isn't implemented

0 comments on commit 24e06df

Please sign in to comment.