Skip to content

Commit 714cdca

Browse files
typeidclaude
andcommitted
Feat(SREP-202): Add new hcp forceupgrade command
Implements a new forceupgrade command for HCP clusters that allows forcing cluster upgrades. Includes command structure, implementation, and tests. Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
1 parent ede0eb4 commit 714cdca

13 files changed

Lines changed: 1333 additions & 51 deletions

File tree

cmd/hcp/cmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package hcp
22

33
import (
4+
"github.com/openshift/osdctl/cmd/hcp/forceupgrade"
45
"github.com/openshift/osdctl/cmd/hcp/mustgather"
56
"github.com/spf13/cobra"
67
)
@@ -12,6 +13,7 @@ func NewCmdHCP() *cobra.Command {
1213
}
1314

1415
hcp.AddCommand(mustgather.NewCmdMustGather())
16+
hcp.AddCommand(forceupgrade.NewCmdForceUpgrade())
1517

1618
return hcp
1719
}

cmd/hcp/forceupgrade/cmd.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package forceupgrade
2+
3+
import (
4+
"github.com/spf13/cobra"
5+
)
6+
7+
// NewCmdForceUpgrade creates and returns the force upgrade command
8+
func NewCmdForceUpgrade() *cobra.Command {
9+
return newCmdForceUpgrade()
10+
}

0 commit comments

Comments
 (0)