Skip to content

Commit

Permalink
helm boolean functions and falsyness: change codefences from helm to …
Browse files Browse the repository at this point in the history
…yaml
  • Loading branch information
rouke-broersma committed Mar 1, 2023
1 parent a802464 commit 7c95b03
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Did you know Yaml is a superset of Json? Probably. Did you realize this means Ya
But did you realize that helm template functions also inherit some of the Json issues? I sure didn't until it bit me!

Now a very common basic helm construct for dealing with default values is the following:
```helm
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -26,7 +26,7 @@ myapp:
What I expected is a generated template looking like this:
```helm
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -37,7 +37,7 @@ data:
But what I got was:
```helm
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -51,7 +51,7 @@ Apparently I wasn't the only one to get tricked into using this construct, there

In the end I chose this construct out of the many proposed solutions:

```helm
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down

0 comments on commit 7c95b03

Please sign in to comment.