Skip to content

fix: set websocket URL env vars regardless of ingress config - #287

Merged
itzg merged 8 commits into
itzg:masterfrom
FernandoRod13:master
May 3, 2026
Merged

itzg merged 8 commits into
itzg:masterfrom
FernandoRod13:master

Conversation

@FernandoRod13

Copy link
Copy Markdown
Contributor

There was a bug in my last PR that I missed. Details below.

Summary

Fixes a bug where the RWA_WEBSOCKET_URL and RWA_WEBSOCKET_URL_SSL environment variables were only set when ingress was enabled. This caused the web UI to fail connecting to the Minecraft server when using a LoadBalancer service.

Changes

  • Bug fix (deployment.yaml): Remove conditional wrapper and fix inverted defaults
  • New test values: Add CI test files for both LoadBalancer and ingress scenarios
  • CI tests: Add steps to verify websocket env vars are present

Details

The bug was in charts/rcon-web-admin/templates/deployment.yaml where the websocket env vars were wrapped in {{- if .Values.ingress.enabled }}. This meant they were only set when ingress was enabled, breaking LoadBalancer deployments.
Additionally fixed inverted defaults:

  • websocketUrlSsl was defaulting to ws:// (should be wss://)
  • websocketUrl was defaulting to wss:// (should be ws://)

Testing

# Test LoadBalancer (no ingress)
helm template test ./charts/rcon-web-admin -f ./charts/rcon-web-admin/ci/websocket-lb-values.yaml | grep RWA_WEBSOCKET
# Test with ingress  
helm template test ./charts/rcon-web-admin -f ./charts/rcon-web-admin/ci/websocket-ingress-values.yaml | grep RWA_WEBSOCKET

FernandoRod13 and others added 8 commits April 11, 2026 23:18
- Remove conditional wrapper that only set env vars when ingress enabled
- Fix inverted defaults (ws vs wss)
- Add CI test values for LoadBalancer and ingress scenarios
- Add CI tests to prevent regression
The readiness probe tries to connect to the RCON server which doesn't exist in CI, causing the pod to appear unhealthy. This is expected behavior - the important thing is that the chart deploys and has the correct env vars.
@FernandoRod13

Copy link
Copy Markdown
Contributor Author

@itzg let me know if any additional fixes needed in order to merge this. Happy to help with other helm template issues you need to be addressed.

@itzg

itzg commented May 3, 2026

Copy link
Copy Markdown
Owner

I'm so sorry, I forgot to merge this since I kicked off a verify build and moved on.

@itzg
itzg merged commit 40b9155 into itzg:master May 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants