Skip to content

Commit

Permalink
allow omission of authenticate secret if a default cert is provided (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
travisgroth authored Mar 29, 2022
1 parent e9a23f8 commit 94245cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: v2
name: pomerium
version: 31.0.1
version: 31.0.2
appVersion: 0.17.0
home: http://www.pomerium.com/
icon: https://www.pomerium.com/img/icon.svg
Expand Down
4 changes: 3 additions & 1 deletion charts/pomerium/templates/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
{{ fail "`ingressController.enabled` is not compatible with `config.insecureProxy`" }}
{{- end -}}
{{- if and .Values.ingressController.enabled (not (or .Values.config.generateTLS .Values.authenticate.ingress.tls.secretName )) -}}
{{ fail "A TLS certificate must be available for Authenticate when using the ingress controller. Please set `config.generateTLS` or `authenticate.ingress.tls.secretName"}}
{{- if not .Values.ingressController.ingressClassResource.defaultCertSecret -}}
{{ fail "A TLS certificate must be available for Authenticate when using the ingress controller. Please set `config.generateTLS`, `ingressController.ingressClassResource.defaultCertSecret` or `authenticate.ingress.tls.secretName"}}
{{- end -}}
{{- end -}}
{{- if and (and .Values.ingressController.enabled (not .Values.ingressController.operatorMode)) .Values.ingress.enabled -}}
{{ fail "`ingressController.enabled` is not compatible with `ingress.enabled` unless legacy `ingressController.operatorMode`" }}
Expand Down

0 comments on commit 94245cf

Please sign in to comment.