Skip to content

Commit 657d8a1

Browse files
authored
Merge pull request #50 from tryretool/release-v4-9-0
Release v4.9.0
2 parents 5afeb14 + 0dce2f1 commit 657d8a1

File tree

5 files changed

+83
-23
lines changed

5 files changed

+83
-23
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: retool
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 4.8.0
5+
version: 4.9.0
66
maintainers:
77
- name: Retool Engineering
88
email: engineering+helm@retool.com

templates/deployment_backend.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ spec:
1919
annotations:
2020
{{- if .Values.podAnnotations }}
2121
{{ toYaml .Values.podAnnotations | indent 8 }}
22+
{{- end }}
23+
{{- if .Values.backend.annotations }}
24+
{{ toYaml .Values.backend.annotations | indent 8 }}
2225
{{- end }}
2326
labels:
2427
{{- include "retool.selectorLabels" . | nindent 8 }}
2528
{{- if .Values.podLabels }}
2629
{{ toYaml .Values.podLabels | indent 8 }}
30+
{{- end }}
31+
{{- if .Values.backend.labels }}
32+
{{ toYaml .Values.backend.labels | indent 8 }}
2733
{{- end }}
2834
spec:
2935
serviceAccountName: {{ template "retool.serviceAccountName" . }}

templates/deployment_jobs.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ spec:
2121
annotations:
2222
{{- if .Values.podAnnotations }}
2323
{{ toYaml .Values.podAnnotations | indent 8 }}
24+
{{- end }}
25+
{{- if .Values.jobRunner.annotations }}
26+
{{ toYaml .Values.jobRunner.annotations | indent 8 }}
2427
{{- end }}
2528
labels:
2629
app.kubernetes.io/name: {{ include "retool.name" . }}-jobs-runner
2730
app.kubernetes.io/instance: {{ .Release.Name }}
2831
{{- if .Values.podLabels }}
2932
{{ toYaml .Values.podLabels | indent 8 }}
33+
{{- end }}
34+
{{- if .Values.jobRunner.labels }}
35+
{{ toYaml .Values.jobRunner.labels | indent 8 }}
3036
{{- end }}
3137
spec:
3238
serviceAccountName: {{ template "retool.serviceAccountName" . }}

templates/ingress.yaml

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{{- if .Values.ingress.enabled }}
2+
{{- $fullName := include "retool.fullname" . -}}
3+
{{- $svcPort := .Values.service.externalPort -}}
4+
{{- $pathType := .Values.ingress.pathType -}}
25
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
36
apiVersion: networking.k8s.io/v1
47
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
@@ -19,26 +22,51 @@ metadata:
1922
{{- end }}
2023
name: {{ template "retool.fullname" . }}
2124
spec:
25+
{{- if and .Values.ingress.ingressClassName (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
26+
ingressClassName: {{ .Values.ingress.ingressClassName }}
27+
{{- end }}
2228
rules:
23-
- http:
24-
paths:
25-
- path: {{ .path }}
26-
{{- if and .Values.ingress.pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
27-
pathType: {{ .Values.ingress.pathType }}
28-
{{- end }}
29-
backend:
30-
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
31-
service:
32-
name: {{ template "retool.fullname" . }}
33-
port:
34-
number: {{ .Values.service.externalPort }}
35-
{{- else }}
36-
serviceName: {{ template "retool.fullname" . }}
37-
servicePort: {{ .Values.service.externalPort }}
29+
{{- if .Values.ingress.hostName }}
30+
- host: {{ .Values.ingress.hostName | quote }}
31+
http:
32+
paths:
33+
- path:
34+
{{- if and $pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
35+
pathType: {{ $pathType }}
36+
{{- end }}
37+
backend:
38+
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
39+
service:
40+
name: {{ $fullName }}
41+
port:
42+
number: {{ $svcPort }}
43+
{{- else }}
44+
serviceName: {{ $fullName }}
45+
servicePort: {{ $svcPort }}
46+
{{- end }}
47+
{{- else }}
48+
{{- range .Values.ingress.hosts }}
49+
- host: {{ .host | quote }}
50+
http:
51+
paths:
52+
{{- range .paths }}
53+
- path: {{ .path }}
54+
{{- if and $pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
55+
pathType: {{ $pathType }}
56+
{{- end }}
57+
backend:
58+
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
59+
service:
60+
name: {{ $fullName }}
61+
port:
62+
number: {{ $svcPort }}
63+
{{- else }}
64+
serviceName: {{ $fullName }}
65+
servicePort: {{ $svcPort }}
66+
{{- end }}
3867
{{- end }}
39-
{{- if .Values.ingress.hostName }}
40-
host: {{ .Values.ingress.hostName | quote }}
41-
{{- end }}
68+
{{- end }}
69+
{{- end }}
4270
{{- if .Values.ingress.tls }}
4371
tls:
4472
{{ toYaml .Values.ingress.tls | indent 4 }}

values.yaml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ service:
9090
# portName: service-port
9191

9292
ingress:
93-
enabled: false
93+
enabled: true
94+
# For k8s 1.18+
95+
# ingressClassName:
9496
labels: {}
9597
annotations: {}
9698
# kubernetes.io/ingress.class: nginx
9799
# kubernetes.io/tls-acme: "true"
98-
# configures the hostname e.g. retool.example.com
99-
hostName:
100+
hosts:
101+
# - host: retool.example.com
102+
# paths:
103+
# - path: /
100104
tls:
101105
# - secretName: retool.example.com
102106
# hosts:
@@ -179,7 +183,9 @@ tolerations: []
179183
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
180184
nodeSelector: {}
181185

186+
# Common annotations for all pods (backend and job runner).
182187
podAnnotations: {}
188+
183189
# Increasing replica count will deploy a separate pod for backend and jobs
184190
# Example: with 3 replicas, you will end up with 3 backends + 1 jobs pod
185191
replicaCount: 1
@@ -194,9 +200,23 @@ revisionHistoryLimit: 3
194200
# podDisruptionBudget:
195201
# maxUnavailable: 1
196202

197-
# Custom labels for pod assignment
203+
# Common labels for all pods (backend and job runner) for pod assignment
198204
podLabels: {}
199205

206+
jobRunner:
207+
# Annotations for job runner pods
208+
annotations: {}
209+
210+
# Labels for job runner pods
211+
labels: {}
212+
213+
backend:
214+
# Annotations for backendpods
215+
annotations: {}
216+
217+
# Labels for backend pods
218+
labels: {}
219+
200220
persistentVolumeClaim:
201221
# set to true to use pvc
202222
enabled: false

0 commit comments

Comments
 (0)