You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Breaking change] Update TEMPORAL_ injected env vars to match those expected by SDKs (#130)
## Summary
This PR updates the environment variables injected by the worker
controller to match the standard names expected by Temporal SDKs,
improving compatibility and reducing configuration complexity for users.
Fixes#128
### Key Changes
**Environment Variable Updates:**
- `TEMPORAL_HOST_PORT` → `TEMPORAL_ADDRESS`
- `TEMPORAL_TLS_KEY_PATH` → `TEMPORAL_TLS_CLIENT_KEY_PATH`
- `TEMPORAL_TLS_CERT_PATH` → `TEMPORAL_TLS_CLIENT_CERT_PATH`
- `WORKER_BUILD_ID` → `TEMPORAL_WORKER_BUILD_ID`
- Added `TEMPORAL_TLS=true` when mTLS is enabled
**Example code changes:**
- Updated demo code to use `go.temporal.io/sdk/contrib/envconfig` for
configuration parsing
## Test Plan
- [x] Updated existing tests to use new environment variable names
- [x] Added unit test for environment variable compatibility with
`go.temporal.io/sdk/contrib/envconfig`
## Migration Notes
This is a BREAKING CHANGE which updates the environment variables that
the controller injects into worker deployments. Existing workers will
need to read in the new environment variable names when they are next
updated by the controller.
---------
Co-authored-by: Copilot <[email protected]>
0 commit comments