Skip to content

Commit 31df7ed

Browse files
Implement KubectlRollout with generic type parameters for deployment lifecycle management (#1700)
* Initial plan * Add KubectlRollout implementation with restart, status, history, undo, pause, and resume methods Co-authored-by: brendandburns <[email protected]> * Add comprehensive tests for KubectlRollout functionality Co-authored-by: brendandburns <[email protected]> * Address code review feedback - extract constants and shared methods Co-authored-by: brendandburns <[email protected]> * Refactor to use generic type parameters for rollout methods Changed API from separate methods per resource type to generic methods: - RolloutRestart<T>, RolloutStatus<T>, RolloutHistory<T> - RolloutPause<T>, RolloutResume<T>, RolloutUndo<T> Usage example: kubectl.RolloutRestart<V1Deployment>("my-app", "production"); kubectl.RolloutStatus<V1DaemonSet>("my-daemon", "default"); This provides a cleaner API that follows the pattern used by Get<T> and List<T>. Co-authored-by: brendandburns <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: brendandburns <[email protected]>
1 parent 40c1a3b commit 31df7ed

File tree

3 files changed

+1208
-0
lines changed

3 files changed

+1208
-0
lines changed

0 commit comments

Comments
 (0)