Skip to content

Commit

Permalink
add the todo for upgrade and add-node command for now
Browse files Browse the repository at this point in the history
Signed-off-by: punitmundra <[email protected]>
  • Loading branch information
punitmundra committed Oct 23, 2023
1 parent 9e93a50 commit 02af7cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/automate-cli/cmd/chef-automate/ha_node_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func runAddNodeHACmd(addDeleteNodeHACmdFlags *AddDeleteNodeHACmdFlags) func(c *c
if err != nil {
return err
}
// 1. get the version of the automate from the bootstrap_automate
// 2. get the bundle name from /hab/a2_deploy_workspace/terraform/a2ha_aib_fe.auto.tfvars
// 3. check bundle existing here /hab/a2_deploy_workspace/terraform/transfer_files/*.aib
// 1 and 2 should be same then we have to proceed, other wise we have to give instruction how to proceed
// we can test the procedure in case 1 and 2 are different
return nodeAdder.Execute(c, args)
}
}
Expand Down
3 changes: 3 additions & 0 deletions components/automate-cli/cmd/chef-automate/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ func restartDeploymentService() error {
}

func runAutomateHAFlow(args []string, offlineMode bool) error {
// First we need to get the version of the automate node from the bootstrap node
// Get the version of the node from the airgap bundle from the command line args
// In case args airgap-bundle > install-version then proceed, other wise not
if !upgradeRunCmdFlags.skipVerify {
err := executeConfigVerifyAndPromptConfirmationOnError("")
if err != nil {
Expand Down

0 comments on commit 02af7cf

Please sign in to comment.