Skip to content

Commit 8b2d60e

Browse files
Merge pull request #19 from ls1intum/add-tls-support
reenabled tls
2 parents 16d681b + 931aa8d commit 8b2d60e

4 files changed

Lines changed: 23 additions & 1 deletion

File tree

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A Gradle Build Cache server with MinIO backend for Theia IDE deploy
55
type: application
66

77
# Chart version - bump for breaking changes
8-
version: 0.2.1
8+
version: 0.2.2
99

1010
# Application version - matches the cache server version
1111
appVersion: "0.1.0"

chart/templates/configmap.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ data:
1212
port: 8080
1313
read_timeout: 30s
1414
write_timeout: 120s
15+
{{- if .Values.tls.enabled }}
16+
tls:
17+
enabled: true
18+
cert_file: /tls/tls.crt
19+
key_file: /tls/tls.key
20+
{{- end}}
1521
1622
storage:
1723
endpoint: "{{ .Release.Name }}-minio:9000"

chart/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,18 @@ spec:
105105
- name: config
106106
mountPath: /etc/gradle-cache
107107
readOnly: true
108+
{{- if .Values.tls.enabled }}
109+
- name: tls-certs
110+
mountPath: /etc/certs
111+
readOnly: true
112+
{{- end }}
108113
volumes:
109114
- name: config
110115
configMap:
111116
name: {{ .Release.Name }}-config
117+
{{- if .Values.tls.enabled }}
118+
- name: tls-certs
119+
secret:
120+
secretName: {{ .Values.tls.secretName }}
121+
{{- end }}
112122
{{- end }}

chart/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,9 @@ resources:
4040
limits:
4141
memory: "2Gi"
4242
cpu: "1000m"
43+
44+
tls:
45+
# Enable TLS for the cache server
46+
enabled: false
47+
# TLS secret name (if TLS is enabled)
48+
secretName: ""

0 commit comments

Comments
 (0)