Commit 63e0d4f
OCPEDGE-2416: Add oc adm transition topology command
Implement SNO to HA topology transition command with comprehensive
preflight validation, user confirmation prompts, and status monitoring.
Features:
- Three operational modes: discovery, initiate, status
- Tiered preflight validation (Error and Warning severity checks)
- Client-side feature gate (OC_ENABLE_CMD_TRANSITION_TOPOLOGY)
- Server-side validation (MutableTopology feature gate check)
- User confirmation with bypass support (--allow-transition-with-warnings)
Preflight checks (10 total):
- Error-severity (blocking): Supported transition, feature gate enabled
- Warning-severity (bypassable): Cluster operators stable, control plane
node count/schedulability/readiness, etcd quorum/stability/voting members
Implementation structure:
- pkg/cli/admin/transition/transition.go: Main command and orchestration
- pkg/cli/admin/transition/status.go: Status monitoring subcommand
- pkg/cli/admin/transition/preflight/: Validation logic and types
- pkg/cli/admin/transition/prompt/: User interaction and confirmation
Command is gated behind OC_ENABLE_CMD_TRANSITION_TOPOLOGY environment
variable and only appears in cluster management commands when enabled.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent fbf0f6a commit 63e0d4f
11 files changed
Lines changed: 2921 additions & 0 deletions
File tree
- pkg/cli/admin
- transition
- preflight
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments