Skip to content

Conversation

@JAORMX
Copy link
Collaborator

@JAORMX JAORMX commented Apr 29, 2025

This PR adds the ability to periodically re-read the kubeconfig file to reflect changes like token updates.

Features

  • Thread-safe client refresh mechanism
  • Periodic refresh with configurable interval
  • Command-line flag to enable and configure refresh interval
  • Comprehensive test coverage

Usage

To enable periodic kubeconfig refresh, use the --kubeconfig-refresh-interval flag:

./server --kubeconfig-refresh-interval=5m

This will refresh the kubeconfig every 5 minutes, allowing the server to pick up changes like token updates without requiring a restart.

This commit adds the ability to periodically re-read the kubeconfig file to reflect changes like token updates. The implementation includes:

1. Thread-safe client refresh mechanism
2. Periodic refresh with configurable interval
3. Command-line flag to enable and configure refresh interval
4. Comprehensive test coverage
@JAORMX JAORMX requested a review from ChrisJBurns April 29, 2025 07:46
@JAORMX JAORMX merged commit 1c82be2 into main Apr 29, 2025
4 checks 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.

3 participants