Skip to content
  • thc1006's avatar
    66adbd4a
    Add SIGUSR1 signal handler for runtime configuration dumps · 66adbd4a
    thc1006 authored
    
    
    Implements Issue #1301 - Adds support for dumping current configuration
    when SIGUSR1 signal is received by the kube-vip process.
    
    Changes:
    - Add SIGUSR1 signal handling in all manager start methods
    - Implement configuration dump functionality in pkg/manager/manager_dump.go:
      * dumpConfiguration() - Main dump coordinator
      * 7 helper methods for different configuration sections
    - Update signal handlers to use switch statement pattern
    - Add comprehensive unit tests (5 tests, all passing)
    - Add E2E test for signal handling
    
    Implementation details:
    - Thread-safe with mutex protection
    - Non-disruptive: process continues after dump
    - Output format: human-readable plaintext via stdout
    - File organization follows project convention (manager_*.go pattern)
    
    Co-authored-by: default avatarSteveYi <steveyiyo@steveyi.net>
    Signed-off-by: default avatarthc1006 <84045975+thc1006@users.noreply.github.com>
    66adbd4a
    Add SIGUSR1 signal handler for runtime configuration dumps
    thc1006 authored
    
    
    Implements Issue #1301 - Adds support for dumping current configuration
    when SIGUSR1 signal is received by the kube-vip process.
    
    Changes:
    - Add SIGUSR1 signal handling in all manager start methods
    - Implement configuration dump functionality in pkg/manager/manager_dump.go:
      * dumpConfiguration() - Main dump coordinator
      * 7 helper methods for different configuration sections
    - Update signal handlers to use switch statement pattern
    - Add comprehensive unit tests (5 tests, all passing)
    - Add E2E test for signal handling
    
    Implementation details:
    - Thread-safe with mutex protection
    - Non-disruptive: process continues after dump
    - Output format: human-readable plaintext via stdout
    - File organization follows project convention (manager_*.go pattern)
    
    Co-authored-by: default avatarSteveYi <steveyiyo@steveyi.net>
    Signed-off-by: default avatarthc1006 <84045975+thc1006@users.noreply.github.com>
To find the state of this project's repository at the time of any of these versions, check out the tags.
Loading