-
Notifications
You must be signed in to change notification settings - Fork 659
OCPBUGS-58468: Reload console config at runtime #15558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
@TheRealJon: This pull request references Jira Issue OCPBUGS-58468, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
- Created pkg/serverconfig/configwatcher.go to watch config file changes using fsnotify - Refactored main() to run server in a loop, restarting when config changes - Updated runServer() to handle config watcher setup and determine if restart is needed - Moved redirect server initialization into runServer() for proper lifecycle management - Simplified createServer() to remove fs parameter (no longer needed) The server now gracefully restarts when the config file is modified, allowing runtime reconfiguration without manual process restarts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Cache session state (authenticator, CSRF verifier) across server restarts - Only recreate sessions when session-related config changes - Update run-bridge.sh to use static config file for testing - Add examples/bridge-config.yaml with static development settings Users now stay logged in when non-session config changes (branding, plugins, etc.) Sessions are only invalidated when auth config actually changes.
effc7c9
to
c9c3784
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: TheRealJon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.