Skip to content

Commit 6f3d633

Browse files
authored
Merge pull request #3 from mconf/v1.23.8-dev
fix: helm updates
2 parents a278b35 + bb04507 commit 6f3d633

File tree

9 files changed

+17
-8
lines changed

9 files changed

+17
-8
lines changed

contrib/helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.0.9-dev1
18+
version: 1.23.8-3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "0.0.9-dev1"
24+
appVersion: "v1.23.8-3"
2525

2626
dependencies:
2727
- name: redis

contrib/helm/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Create the domains
6969
{{- end }}
7070
{{- define "workadventure.playUrl" -}}
7171
{{- if .Values.singleDomain -}}
72-
/
72+
{{ printf "https://%s" .Values.domainName }}
7373
{{- else -}}
7474
{{- if .Values.play.ingress.frontDomainName -}}
7575
{{ printf "https://%s" .Values.play.ingress.frontDomainName }}
@@ -84,7 +84,7 @@ Create the domains
8484
{{- end -}}
8585
{{- define "workadventure.pusherUrl" -}}
8686
{{- if .Values.singleDomain -}}
87-
/
87+
{{ printf "https://%s" .Values.domainName }}
8888
{{- else -}}
8989
{{- if .Values.play.ingress.pusherDomainName -}}
9090
{{ printf "https://%s" .Values.play.ingress.pusherDomainName }}

contrib/helm/templates/mapstorage-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.mapstorage.enabled }}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -127,3 +128,4 @@ spec:
127128
tolerations:
128129
{{- toYaml . | nindent 8 }}
129130
{{- end }}
131+
{{- end }}

contrib/helm/templates/mapstorage-env.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.mapstorage.enabled }}
12
---
23
kind: ConfigMap
34
apiVersion: v1
@@ -18,3 +19,4 @@ data:
1819
{{- range $key, $val := .Values.mapstorage.env }}
1920
{{ $key }}: {{ $val | quote }}
2021
{{- end }}
22+
{{- end }}

contrib/helm/templates/mapstorage-ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and (or .Values.ingress.enabled .Values.mapstorage.ingress.enabled) (not .Values.singleDomain) -}}
1+
{{- if and .Values.mapstorage.enabled (or .Values.ingress.enabled .Values.mapstorage.ingress.enabled) (not .Values.singleDomain) -}}
22
{{- $fullName := include "workadventure.fullname" . -}}
33
apiVersion: networking.k8s.io/v1
44
kind: Ingress

contrib/helm/templates/mapstorage-pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.mapstorage.persistence.enabled }}
1+
{{- if and .Values.mapstorage.enabled .Values.mapstorage.persistence.enabled }}
22
kind: PersistentVolumeClaim
33
apiVersion: v1
44
metadata:

contrib/helm/templates/mapstorage-secret-env.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{{- if include "workadventure.isBooleanText" .Values.mapstorage.env.ENABLE_BASIC_AUTHENTICATION }}
1+
{{- if and .Values.mapstorage.enabled (include "workadventure.isBooleanText" .Values.mapstorage.env.ENABLE_BASIC_AUTHENTICATION) }}
22
{{- $name := .Values.mapstorage.env.AUTHENTICATION_USER | required ".Values.mapstorage.env.AUTHENTICATION_USER is required when .Values.mapstorage.env.ENABLE_BASIC_AUTHENTICATION is set" }}
33
{{- $password := .Values.mapstorage.secretEnv.AUTHENTICATION_PASSWORD | required ".Values.mapstorage.secretEnv.AUTHENTICATION_PASSWORD is required when .Values.mapstorage.env.ENABLE_BASIC_AUTHENTICATION is set" }}
44
{{- end }}
55

66
{{- $bearerAuthentication := "" }}
7-
{{- if and .Values.mapstorage.env.ENABLE_BEARER_AUTHENTICATION (not .Values.mapstorage.secretEnv.AUTHENTICATION_TOKEN) }}
7+
{{- if and .Values.mapstorage.enabled .Values.mapstorage.env.ENABLE_BEARER_AUTHENTICATION (not .Values.mapstorage.secretEnv.AUTHENTICATION_TOKEN) }}
88
{{- $secret := (lookup "v1" "Secret" .Release.Namespace (printf "%s-secret-env-mapstorage" (include "workadventure.fullname" .))) }}
99

1010
{{- $bearerAuthentication = (randAlpha 32) | b64enc }}
@@ -14,6 +14,7 @@
1414
{{- end }}
1515
{{- end }}
1616

17+
{{- if .Values.mapstorage.enabled }}
1718
---
1819
kind: Secret
1920
apiVersion: v1
@@ -34,3 +35,4 @@ data:
3435
{{- range $key, $val := .Values.mapstorage.secretEnv }}
3536
{{ $key }}: {{ $val | default "" | b64enc | quote }}
3637
{{- end }}
38+
{{- end }}

contrib/helm/templates/mapstorage-service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.mapstorage.enabled }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -19,3 +20,4 @@ spec:
1920
selector:
2021
{{- include "workadventure.selectorLabels" . | nindent 4 }}
2122
role: mapstorage
23+
{{- end }}

contrib/helm/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ icon:
469469
# mapstorage service
470470
# #########################################################
471471
mapstorage:
472+
enabled: true
472473
replicaCount: 1
473474

474475
image:

0 commit comments

Comments
 (0)