Skip to content

Commit

Permalink
Fix TLS documentation and IDP config validation (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
travisgroth authored Feb 24, 2020
1 parent 9827a7c commit 656319a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/pomerium/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: pomerium
version: 6.0.0
version: 6.0.1
appVersion: 0.6.2
home: http://www.pomerium.io/
icon: https://www.pomerium.io/logo-long.svg
Expand Down
2 changes: 1 addition & 1 deletion charts/pomerium/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ A full listing of Pomerium's configuration variables can be found on the [config
| `ingress.enabled` | Enables Ingress for pomerium | `true` |
| `ingress.annotations` | Ingress annotations. Ensure you set appropriate annotations for TLS backend and large URLs if using Azure. | `{}` |
| `ingress.hosts` | Ingress accepted hostnames | `[]` |
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `ingress.secretName` | Ingress TLS certificate secret name | `[]` |
| `metrics.enabled` | Enable prometheus metrics endpoint | `false` |
| `metrics.port` | Prometheus metrics endpoint port | `9090` |
| `cache.nameOverride` | Name of the cache service. | `cache` |
Expand Down
4 changes: 3 additions & 1 deletion charts/pomerium/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ Adapted from : https://github.com/helm/charts/blob/master/stable/drone/templates
*/}}
{{- define "pomerium.providerOK" -}}
{{- if .Values.authenticate.idp -}}
{{- if eq .Values.authenticate.idp.clientID "" -}}
{{- if .Values.config.existingSecret -}}
true
{{- else if eq .Values.authenticate.idp.clientID "" -}}
false
{{- else if eq .Values.authenticate.idp.clientSecret "" -}}
false
Expand Down

0 comments on commit 656319a

Please sign in to comment.