-
Notifications
You must be signed in to change notification settings - Fork 187
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
Modified agent registration adding groups and arch #2677
Conversation
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.
LGTM!
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.
LGTM
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.
Hi Pablo,
I did some tests and detected an error, here are the steps to reproduce it:
- Select Redhat / CentOS and CentOS6 or Higher.
- Select aarch64.
- We switch to CentOS5:
In the Copy Command of "Install and enroll the agent" it is left with the word "undefined" at the end, this is because it does not have a default architecture selection when changing the options.
Just some details but Great job!! 👍🏼
@@ -34,6 +37,46 @@ import { | |||
} from '@elastic/eui'; | |||
import { WzRequest } from '../../../react-services/wz-request'; | |||
|
|||
|
|||
const architectureBottons = [ |
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.
Typo: I guess you mean Buttons
here
} | ||
]; | ||
|
||
const versionBottonsCentos = [ |
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.
Typo: I guess you mean Buttons
here
I was testing the PR, and found a pair of issues:
You can find more info here: |
setVersion(selectedVersion) { | ||
this.setState({ selectedVersion }); | ||
} |
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.
Should we restart the selectedArchitecture
variable (set to empty string ''
) when an OS version is selected (selectedVersion
variable)?
I tested this PR and if you don't select architecture for Debian or a version or architecture for Centos, the step to install the agent is missing and the start agent step is showing. Maybe we should show in this step some message saying some information is needed or something like that. Same for the step to start the agent. |
- Replaced OS buttons by button group - Show a message with OS, OS version or OS architecture are missing. Hide the command to install the agent when some of these options are missing. - The start agent step is showing when OS options are all selected
@@ -328,7 +336,7 @@ export class RegisterAgent extends Component { | |||
const groupInput = ( | |||
<EuiText> | |||
<p> | |||
You can predefine the group where you want to enroll the agent. | |||
Select one or more existing groups |
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.
current instad of existing (?)
Hi team! This PR change the form of an agent registration adding the options of selecting the architecture of your OS and enrolling the agent to a group.
This PR close #2652 and close #2666