Skip to content

Commit a695d4f

Browse files
authored
Fixed incorrect helm template syntax in README.md
Helm uses `{{ }}` for its own templating, which can conflict with the Go templating syntax used in OAuth2 Proxy's templates. This change will make it working.
1 parent 76e6b86 commit a695d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helm/oauth2-proxy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ extraObjects:
332332
<html>
333333
<body>
334334
<h1>error</h1>
335-
<p>{{.StatusCode}}</p>
335+
<p>{{`{{ .StatusCode }}`}}</p>
336336
</body>
337337
</html>
338338
```
@@ -360,4 +360,4 @@ config:
360360
```
361361

362362
## Route requests to sidecar container
363-
You can route requests to a sidecar container first by setting the `service.targetPort` variable. The possible values for the targetPort field of a Kubernetes Service can be either a port number or the name of a port defined in the pod. By default, the service's `targetPort` value equals to `httpSchema`'s.
363+
You can route requests to a sidecar container first by setting the `service.targetPort` variable. The possible values for the targetPort field of a Kubernetes Service can be either a port number or the name of a port defined in the pod. By default, the service's `targetPort` value equals to `httpSchema`'s.

0 commit comments

Comments
 (0)