Change the UI to support agent registration with and without a config
requested to merge 347240-change-the-ui-to-support-agent-registration-with-and-without-a-config into master
What does this MR do and why?
This MR adds a possibility to register an agent without a config file.
Changes within the MR:
- Install agent modal
- the empty state is shown only when KAS is disabled
- when KAS is enabled, the dropdown to select or create a config is shown
- copy changed for the KAS enabled state of the modal
- Agent selection dropdown:
- the search field is added using the
gl-search-by-type
component - the button to create an agent if nothing is found added
- an error is returned from KAS if the agent name is not supported
- the search field is added using the
- Agent table:
- the
Default config
is shown for the agents without a config file - the question mark is shown that leads to the documentation
- the
Screenshots or screen recordings
Adding agent without a config
Install agent modal when KAS is disabled
Install agent modal when KAS is enabled
Error returned for the incorrect agent name
Agent with the default config in agents list
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Visit Infrastructure -> Kubernetes Clusters
- Select Actions to open Install agent modal
- Use agent selection dropdown to search for the existing agent config or create an agent without a config
- Verify the agent details in the agent table after successful creation.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #347240 (closed)
Edited by Anna Vovchenko