[Fleet] Fix all add agent steps disabled when fleet server policy selected (#134448) (#134456)

* enable deployment mode step if policy selected

* add fleet server to excluded packages

(cherry picked from commit 2f6605025c)

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
This commit is contained in:
Kibana Machine 2022-06-15 10:09:45 -04:00 committed by GitHub
parent 1b4c5b3ab1
commit 94d89a832f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -47,7 +47,7 @@ export const AdvancedTab: React.FunctionComponent<AdvancedTabProps> = ({ selecte
getSetDeploymentModeStep({
deploymentMode,
setDeploymentMode,
disabled: !Boolean(fleetServerPolicyId),
disabled: !Boolean(fleetServerPolicyId || selectedPolicyId),
}),
getAddFleetServerHostStep({ fleetServerHostForm, disabled: !Boolean(fleetServerPolicyId) }),
getGenerateServiceTokenStep({

View file

@ -11,14 +11,15 @@ import { PLUGIN_ID, INTEGRATIONS_PLUGIN_ID, pagePathGetters } from '../../../../
// or are otherwise not accounted for by verbiage and elements throughout the multi-step UI
const EXCLUDED_PACKAGES = [
'apm',
'endpoint',
'synthetics',
'security_detection_engine',
'osquery_manager',
'dga',
'cloud_security_posture',
'problemchild',
'dga',
'endpoint',
'fleet_server',
'kubernetes',
'osquery_manager',
'problemchild',
'security_detection_engine',
'synthetics',
];
interface GetInstallPkgRouteOptionsParams {