mattermost / mattermost-helm

Mattermost Helm charts for Kubernetes
Apache License 2.0
162 stars 145 forks source link

rtcd: how to provide RTCD_RTC_ICESERVERS environment variable? #363

Open MoeRT09 opened 1 year ago

MoeRT09 commented 1 year ago

Hey, there seems to be no way to get the RTCD_RTC_ICESERVERS environment variable to be applied when provided via a values.yaml file.

Here are examples I tried:

I assume, in https://github.com/mattermost/rtcd/commit/a366a489a001bf02a4066bc3d92b0507c772290d, the format that you supposed to provide here changed from comma separated list of string to JSON. But this change was not reflected in the Helm chart, as there is currently no way to provide JSON via values without Helm trying to parse it somehow.

streamer45 commented 1 year ago

@MoeRT09

I believe it should be:

RTCD_RTC_ICESERVERS: "\'[{\"urls\":[\"stun:stun.global.calls.mattermost.com:3478\"]}]\'"

I know it's super ugly but it really helps to keep the inner value as valid JSON. Maybe we can find a better way in the future.

/cc @angeloskyratzakos