Skip to content

Commit 35105de

Browse files
authored
Merge pull request #225 from ViRb3/main
Migrate from bitnami to cloudpirates
2 parents a44fc19 + 277b316 commit 35105de

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

Chart.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
apiVersion: v2
2-
version: 0.9.5
3-
appVersion: 3.7.6
2+
version: 0.9.6
3+
appVersion: 3.8.0
44
description: A Helm chart for CTFd
55
name: ctfd
66
dependencies:
77
- name: mariadb
8-
version: 20.2.2
9-
repository: https://charts.bitnami.com/bitnami
8+
version: 0.3.0
9+
repository: oci://registry-1.docker.io/cloudpirates
1010
condition: mariadb.enabled
1111
- name: redis
12-
version: 20.7.1
13-
repository: https://charts.bitnami.com/bitnami
12+
version: 0.4.6
13+
repository: oci://registry-1.docker.io/cloudpirates
1414
condition: redis.enabled
1515
home: https://github.com/bman46/CTFd-Helm
1616
icon: https://raw.githubusercontent.com/CTFd/CTFd/master/CTFd/themes/core/static/img/logo.png
1717
sources:
18-
- https://gitlab.com/momothereal/helm-charts
19-
- https://github.com/bitnami/charts/tree/master/bitnami/mariadb-galera
20-
- https://github.com/bitnami/charts/tree/master/bitnami/redis
18+
- https://github.com/CloudPirates-io/helm-charts
2119
- https://ctfd.io/
2220
keywords:
2321
- ctfd

templates/_helpers.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Create database vars
3434
{{- if .Values.mariadb.enabled -}}
3535
{{- printf "mysql+pymysql://%s:%s@%s-mariadb.%s/%s" .Values.mariadb.auth.username .Values.mariadb.auth.password .Release.Name .Release.Namespace .Values.mariadb.auth.database -}}
3636
{{- else -}}
37-
{{- .values.externalDB.DATABASE_URL -}}
37+
{{- .Values.externalDB.DATABASE_URL -}}
3838
{{- end -}}
3939
{{- end -}}
4040

@@ -44,11 +44,11 @@ Create redis DB vars
4444
{{- define "ctfd.REDIS_URL" -}}
4545
{{- if .Values.redis.enabled -}}
4646
{{- if .Values.redis.auth.enabled -}}
47-
{{- printf "redis://:%s@%s-redis-master.%s" .Values.redis.auth.password .Release.Name .Release.Namespace -}}
47+
{{- printf "redis://:%s@%s-redis.%s" .Values.redis.auth.password .Release.Name .Release.Namespace -}}
4848
{{- else -}}
49-
{{- printf "redis://%s-redis-master.%s" .Release.Name .Release.Namespace -}}
49+
{{- printf "redis://%s-redis.%s" .Release.Name .Release.Namespace -}}
5050
{{- end -}}
5151
{{- else -}}
52-
{{- .values.externalDB.REDIS_URL -}}
52+
{{- .Values.externalDB.REDIS_URL -}}
5353
{{- end -}}
5454
{{- end -}}

templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
command: ['sh', '-c', 'echo -e "Checking for the availability of Redis Server deployment"; while ! nc -z $redisServer 6379; do sleep 1; printf "-"; done; echo -e " >> Redis Server has started";']
3535
env:
3636
- name: redisServer
37-
value: {{ printf "%s-redis-master" .Release.Name }}
37+
value: {{ printf "%s-redis" .Release.Name }}
3838
{{- end }}
3939
{{- if .Values.mariadb.enabled }}
4040
- name: mysql-wait

values.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replicaCount: 1
66

77
image:
88
repository: ctfd/ctfd
9-
tag: # defaults to chart version. Optionally, override here
9+
tag: "" # Leave empty to use chart default, or specify version like "3.8.0"
1010
pullPolicy: IfNotPresent
1111

1212
# Set K8s securityContext for the CTFd deployment:
@@ -19,7 +19,10 @@ security:
1919
# See bitnami redis values.yaml for more details
2020
redis:
2121
# Enable Redis server provided by helm:
22-
enabled: True
22+
enabled: true
23+
# Override Redis image (optional)
24+
# image:
25+
# tag: "8.2.0"
2326
auth:
2427
enabled: true
2528
password: "ChangeMe!123"
@@ -28,17 +31,17 @@ redis:
2831

2932
mariadb:
3033
# Enable mariadb server provided by helm:
31-
enabled: True
34+
enabled: true
35+
# Override MariaDB image tag (optional)
36+
# image:
37+
# tag: "11.8.2"
3238
# Login credentials:
3339
auth:
3440
rootPassword: "ChangeMe!123"
3541
database: ctfd
3642
username: "ctfd"
3743
password: "ChangeMe!123"
3844

39-
replicationUser: "replicate"
40-
replicationPassword: "ChangeMe!123"
41-
4245
persistence:
4346
enabled: true
4447
storageClass: ""
@@ -59,7 +62,7 @@ env:
5962
# Amount of CTFd workers
6063
WORKERS: 5
6164
# If behing ingress proxy or nginx:
62-
REVERSE_PROXY: True
65+
REVERSE_PROXY: true
6366
secret:
6467
existingSecret:
6568
# Stores Environment Variable to secret key name mappings
@@ -167,4 +170,4 @@ metrics:
167170
## [Prometheus Selector Label](https://github.com/helm/charts/tree/master/stable/prometheus-operator#prometheus-operator-1)
168171
## [Kube Prometheus Selector Label](https://github.com/helm/charts/tree/master/stable/prometheus-operator#exporters)
169172
selector:
170-
prometheus: kube-prometheus
173+
prometheus: kube-prometheus

0 commit comments

Comments
 (0)