Skip to content

Commit eb1adb5

Browse files
Merge pull request #21 from brennoo/add_redis_protocol
Add support for redis protocol
2 parents ebc8e9d + 7fa4453 commit eb1adb5

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ icon: https://ctfd.io/static/img/ctfd.svg
66
type: application
77

88
# Dev note: trigger a helm chart release by bumping the version
9-
version: 0.3.0
9+
version: 0.3.1
1010

1111
# Redis, MySQL/MariaDB and MinIO
1212
dependencies:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# CTFd Helm Chart
2-
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
2+
![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
33
[![Lint and Server-side Dryrun Chart](https://github.com/ScribblerCoder/CTFd-Helm/actions/workflows/helm-lint-test.yaml/badge.svg)](https://github.com/ScribblerCoder/CTFd-Helm/actions/workflows/helm-lint-test.yaml)
44

55
This is a Helm chart for deploying CTFd on Kubernetes. It deploys the official [CTFd Docker image](ghcr.io/ctfd/ctfd). HA and Autoscaling + MariaDB + Redis + S3 Storage. Also supports using external MariaDB/Redis/S3.

templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ mysql+pymysql://{{ index .Values "mariadb-galera" "external" "username" }}:{{ in
8181
{{- if .Values.redis.enabled -}}
8282
redis://{{ .Release.Name }}-redis-master:6379
8383
{{- else -}}
84-
redis://{{ .Values.redis.external.username }}:{{ .Values.redis.external.password }}@{{ .Values.redis.external.host }}:{{ .Values.redis.external.port }}
84+
{{- printf "%s://%s:%s@%s:%v/%v" (.Values.redis.external.protocol | default "redis") .Values.redis.external.username .Values.redis.external.password .Values.redis.external.host .Values.redis.external.port (.Values.redis.external.database | default 0) -}}
8585
{{- end -}}
8686
{{- end -}}
8787

@@ -93,4 +93,4 @@ redis://{{ .Values.redis.external.username }}:{{ .Values.redis.external.password
9393
http://{{ (index .Values.minio.ingress.hosts 0) }}
9494
{{- else -}}
9595
{{- end -}}
96-
{{- end -}}
96+
{{- end -}}

values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ redis:
250250
host: external-redis-host
251251
username: ""
252252
password: ""
253+
protocol: "redis" # change to rediss if you are using TLS
254+
database: 0
253255
volumePermissions:
254256
enabled: true # set to false if you want to manage the permissions yourself
255257
image:
@@ -315,4 +317,4 @@ minio:
315317
size: 10Gi
316318

317319
# -- Made for deploying custom manifests with this helm chart
318-
extraObjects: []
320+
extraObjects: []

0 commit comments

Comments
 (0)