Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ingress.https with unused kube-lego references, rely on ingress.tls and ingress.annotations #1813

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions helm-chart/binderhub/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,6 @@ properties:
type: boolean
description: |
TODO
type:
type: string
description: |
TODO
annotations:
type: object
additionalProperties: false
Expand Down
15 changes: 2 additions & 13 deletions helm-chart/binderhub/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: binderhub
{{- if or (and .Values.ingress.https.enabled (eq .Values.ingress.https.type "kube-lego")) .Values.ingress.annotations }}
{{- with .Values.ingress.annotations }}
annotations:
{{- if and .Values.ingress.https.enabled (eq .Values.ingress.https.type "kube-lego") }}
kubernetes.io/tls-acme: "true"
{{- end }}
{{- with .Values.ingress.annotations }}
{{- . | toYaml | nindent 4 }}
{{- end }}
consideRatio marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
Expand All @@ -31,14 +27,7 @@ spec:
host: {{ . | quote }}
{{- end }}
{{- end }}
{{- if and .Values.ingress.https.enabled (eq .Values.ingress.https.type "kube-lego") }}
tls:
- secretName: kubelego-tls-binder-{{ .Release.Name }}
hosts:
{{- range .Values.ingress.hosts }}
- {{ . | quote }}
{{- end }}
{{- else if .Values.ingress.tls }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
Expand Down
Loading