-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add and delete node command for automate HA #7563
Conversation
✅ Deploy Preview for chef-automate ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -450,3 +441,16 @@ func (e *existingInfra) validateIPs() *list.List { | |||
|
|||
return errorList | |||
} | |||
|
|||
func readConfig(path string) (ExistingInfraConfigToml, error) { | |||
templateBytes, err := ioutil.ReadFile(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ioutil.ReadFile is deprecated (Line 446)
templateBytes, err := ioutil.ReadFile(path) | |
templateBytes, err := os.ReadFile(path) |
Created by deprecated-ioutil-readfile.
} | ||
|
||
func writeFile(tomlbytes []byte, filepath string) error { | ||
err := ioutil.WriteFile(filepath, tomlbytes, 0600) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ioutil.WriteFile is deprecated (Line 85)
err := ioutil.WriteFile(filepath, tomlbytes, 0600) | |
err := os.WriteFile(filepath, tomlbytes, 0600) |
Created by deprecated-ioutil-writefile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix Code Smell and Security Hotspot raised by Sonarcloud.
components/automate-cli/cmd/chef-automate/automateHADeployExistingInfra.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed and Updated the doc accordingly.
6d1501b
to
e6e020d
Compare
Signed-off-by: shaik80 <sh.mudassir98@gmail.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: dishanktiwari2501 <dtiwari@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
Signed-off-by: Vivek Shankar <vshankar@progress.com>
50c10a4
to
9ffc255
Compare
Kudos, SonarCloud Quality Gate passed! |
🔩 Description: What code changed, and why?
Created command to add new node in chef automate HA, example: chef-automate node add --automate 10.0.1.2
Created command to delete node from chef automate HA, example: chef-automate node remove --automate 10.0.1.2
⛓️ Related Resources
https://chefio.atlassian.net/browse/SHIELD-171
https://chefio.atlassian.net/browse/SHIELD-172
👍 Definition of Done
Running the add node command will add node to HA setup
Running the remove node commands will remove node from HA setup.
You can verify this by running
chef-automate status
Follow the docs for add and remove nodes at this link: https://deploy-preview-7563--chef-automate.netlify.app/automate/ha_onprim_deployment_procedure/
👟 How to Build and Test the Change
✅ Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)All PRs from Progress employees should tick these if appropriate:
Please add a note next to any checkbox above if you are NOT ticking it.
📷 Screenshots, if applicable
My.Movie.1.mp4