Skip to content

Commit 42d4167

Browse files
192 add warning log when av related helm values are detected (#194)
* feat(helm): add warning log when deprecated AV settings are detected Fixes: #192 - Added a startup warning when any Audio/Video related values (av.enabled, av.serverIP, av.stunServers, av.jitsiUrl) are present in Helm chart configurations. - Ensures deployments are notified that built in A/V support is no longer available. - No functional behavior changed, only logs a warning at container start. * chore: add AV deprecation warning and clean up env vars - Add Helm NOTES warning when AV related values are configured - Remove unused CT_AV_DEPRECATED_WARNING environment variable from Deployment - Keep AV env configuration minimal while clearly signaling that A/V is no longer supported
1 parent 8fbe8b3 commit 42d4167

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

charts/collab/templates/NOTES.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,21 @@ Application URL:
33
{{- $host := (urlParse .Values.codetogether.url).host }}
44
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host }}{{ .path }}
55
{{- end }}
6+
7+
{{- if or .Values.av.enabled .Values.av.serverIP .Values.av.stunServers.enabled .Values.av.jitsiUrl }}
8+
9+
###############################################################################
10+
# WARNING: A/V OPTIONS DEPRECATED
11+
###############################################################################
12+
Audio/Video options were detected in your Helm values:
13+
14+
av.enabled = {{ .Values.av.enabled | default "false" }}
15+
av.serverIP = {{ .Values.av.serverIP | default "" }}
16+
av.stunServers.enabled = {{ .Values.av.stunServers.enabled | default "false" }}
17+
av.jitsiUrl = {{ .Values.av.jitsiUrl | default "" }}
18+
19+
A/V is no longer supported and these settings will be ignored by the server.
20+
Please remove these values from your codetogether-values.yaml.
21+
###############################################################################
22+
23+
{{- end }}

charts/collab/templates/deployment.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@ spec:
111111
- name: CT_AV_ENABLED
112112
value: {{ .Values.av.enabled | quote }}
113113

114-
# ------------------------------
115-
# A/V DEPRECATION NOTICE
116-
# ------------------------------
117-
{{- if or .Values.av.enabled .Values.av.serverIP .Values.av.stunServers.enabled .Values.av.jitsiUrl }}
118-
- name: CT_AV_DEPRECATED_WARNING
119-
value: "Audio/Video options detected in Helm values, but A/V is no longer supported and will be ignored."
120-
{{- end }}
121-
122114
{{- if .Values.av.enabled }}
123115
- name: CT_AV_LAN_IP
124116
value: {{ .Values.av.serverIP | quote }}

0 commit comments

Comments
 (0)