Skip to content

Commit d4b7877

Browse files
committed
revert a couple changes
1 parent 2e78eb5 commit d4b7877

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/reference/template-functions-config-context.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ func ConfigOptionEquals(optionName string, expectedValue string) bool
152152
153153
Returns true if the configuration option value is equal to the supplied value.
154154
155+
```yaml
156+
'{{repl ConfigOptionEquals "http_enabled" "1" }}'
157+
```
158+
155159
#### Example
156160
157161
The following KOTS [HelmChart](/reference/custom-resource-helmchart-v2) custom resource uses the ConfigOptionEquals template function to set the `postgres.enabled` value depending on if the user selected the `embedded_postgres` option on the KOTS Admin Console config screen. This value is then mapped to the `values.yaml` file for the associated Helm chart during deployment.
@@ -180,6 +184,10 @@ func ConfigOptionNotEquals(optionName string, expectedValue string) bool
180184
181185
Returns true if the configuration option value is not equal to the supplied value.
182186
187+
```yaml
188+
'{{repl ConfigOptionNotEquals "http_enabled" "1" }}'
189+
```
190+
183191
## LocalRegistryAddress
184192
185193
```go

0 commit comments

Comments
 (0)