mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Hide agentless option in add integration flyout (#225142)
Closes: https://github.com/elastic/kibana/issues/225028 Builds off of: https://github.com/elastic/kibana/pull/223221 Similar issue to 223221, but handles adding integrations like Okta to an existing policy. This also ensures the agentless deployment option is not shown when attempting to add to an existing agent policy.
This commit is contained in:
parent
1f1126ede4
commit
f9671eb13e
1 changed files with 4 additions and 2 deletions
|
@ -177,6 +177,7 @@ export const CreatePackagePolicySinglePage: CreatePackagePolicyParams = ({
|
|||
packageInfo &&
|
||||
packageHasAtLeastOneSecret({ packageInfo });
|
||||
|
||||
const hideAgentlessSelector = !!addIntegrationFlyoutProps;
|
||||
// Save package policy
|
||||
const {
|
||||
onSubmit,
|
||||
|
@ -209,7 +210,7 @@ export const CreatePackagePolicySinglePage: CreatePackagePolicyParams = ({
|
|||
hasFleetAddAgentsPrivileges,
|
||||
setNewAgentPolicy,
|
||||
setSelectedPolicyTab,
|
||||
hideAgentlessSelector: !!addIntegrationFlyoutProps,
|
||||
hideAgentlessSelector,
|
||||
});
|
||||
|
||||
if (addIntegrationFlyoutProps?.agentPolicy) {
|
||||
|
@ -456,7 +457,7 @@ export const CreatePackagePolicySinglePage: CreatePackagePolicyParams = ({
|
|||
/>
|
||||
|
||||
{/* TODO move SetupTechnologySelector out of extensionView */}
|
||||
{!extensionView && isAgentlessIntegration(packageInfo) && (
|
||||
{!extensionView && !hideAgentlessSelector && isAgentlessIntegration(packageInfo) && (
|
||||
<SetupTechnologySelector
|
||||
disabled={false}
|
||||
allowedSetupTechnologies={allowedSetupTechnologies}
|
||||
|
@ -515,6 +516,7 @@ export const CreatePackagePolicySinglePage: CreatePackagePolicyParams = ({
|
|||
handleExtensionViewOnChange,
|
||||
handleSetupTechnologyChange,
|
||||
allowedSetupTechnologies,
|
||||
hideAgentlessSelector,
|
||||
]
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue