Skip to content

Commit

Permalink
docs(Readme): Update multiple values example
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jul 29, 2024
1 parent 5d61d74 commit ab5bad1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ Also, see [templating](#templating) and [example](#examples) sections.
2. Template with multiple values:
```shell
$ cat example.yaml
image: nginx:stable-alpine #yampl {{ repo current }}:{{ .tag }}
$ yampl example.yaml -v tag=stable
image: nginx:stable #yampl {{ repo current }}:{{ .tag }}
image: nginx:stable-alpine #yampl {{ .repo }}:{{ .tag }}
$ yampl example.yaml -v repo=docker.io/nginx -v tag=stable
image: docker.io/nginx:stable #yampl {{ .repo }}:{{ .tag }}
```
> [!NOTE]
> All variables must be set or else a node will remain unchanged.
3. Using a [Sprig](https://masterminds.github.io/sprig/) function:
```shell
Expand Down

0 comments on commit ab5bad1

Please sign in to comment.