Skip to content

Commit

Permalink
Update ingress chart definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmay committed Sep 14, 2021
1 parent 15b177a commit 1c809fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chart/keel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: keel
description: Open source, tool for automating Kubernetes deployment updates. Keel is stateless, robust and lightweight.
version: 0.9.9
version: 0.9.10
# Note that we use appVersion to get images tag, so make sure this is correct.
appVersion: 0.16.1
keywords:
Expand Down
12 changes: 9 additions & 3 deletions chart/keel/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
{{- end }}
{{- end }}
---
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand All @@ -34,6 +34,9 @@ metadata:
networking.gke.io/managed-certificates: {{ $fullName }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- end }}
{{- if not .Values.ingress.hosts }}
backend:
serviceName: {{ $fullName }}
Expand All @@ -57,9 +60,12 @@ spec:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: keel
service:
name: {{ $fullName }}
port:
name: keel
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 1c809fc

Please sign in to comment.