Skip to content

Commit

Permalink
fix: force COLIBRI_WEBSOCKET_REGEX value
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenard committed Nov 22, 2023
1 parent 91aecc0 commit 9dae7c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion controllers/environments.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion controllers/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ func NewWebDeploymentSyncer(jitsi *v1alpha1.Jitsi, c client.Client) syncer.Inter
dep.Spec.Strategy.Type = appsv1.RollingUpdateDeploymentStrategyType
dep.Spec.Template.Spec.Affinity = &jitsi.Spec.Web.Affinity

envVars := jitsi.EnvVars(WebVariables)
envVars := append(jitsi.EnvVars(WebVariables),
corev1.EnvVar{
Name: "COLIBRI_WEBSOCKET_REGEX",
Value: "[a-zA-Z0-9-\\._]+",
})

container := corev1.Container{
Name: "web",
Expand Down
1 change: 1 addition & 0 deletions gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var EXCLUDES = []string{
"TURNS_HOST",
"TURNS_PORT",
"LOCAL_ADDRESS",
"COLIBRI_WEBSOCKET_REGEX",
}

var ADDITIONALS = map[string][]string{
Expand Down

0 comments on commit 9dae7c9

Please sign in to comment.