Commit 31df7ed
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- src/KubernetesClient.Kubectl/Beta
- tests/Kubectl.Tests
3 files changed
+1208
-0
lines changed
0 commit comments