mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Fleet] Enable new agent onboarding flow + exclude integrations. (#133664)
* Flip feature flag for multi-page agent onboarding flow to true * Update list of excluded packages Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
d7e6dc3c44
commit
2cc45df536
2 changed files with 16 additions and 4 deletions
|
@ -12,7 +12,7 @@ export type ExperimentalFeatures = typeof allowedExperimentalValues;
|
|||
* This object is then used to validate and parse the value entered.
|
||||
*/
|
||||
export const allowedExperimentalValues = Object.freeze({
|
||||
createPackagePolicyMultiPageLayout: false,
|
||||
createPackagePolicyMultiPageLayout: true,
|
||||
});
|
||||
|
||||
type ExperimentalConfigKeys = Array<keyof ExperimentalFeatures>;
|
||||
|
|
|
@ -7,8 +7,20 @@
|
|||
import type { CreatePackagePolicyRouteState } from '../../../../../types';
|
||||
import { PLUGIN_ID, INTEGRATIONS_PLUGIN_ID, pagePathGetters } from '../../../../../constants';
|
||||
|
||||
// TODO: (in following PR) decide better way to infer this list of "special" integrations
|
||||
const SPECIAL_PACKAGES = ['apm', 'endpoint', 'synthetics'];
|
||||
// List of packages that shouldn't use the multi-step onboarding UI because they use custom policy interfaces
|
||||
// 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',
|
||||
'kubernetes',
|
||||
];
|
||||
|
||||
interface GetInstallPkgRouteOptionsParams {
|
||||
currentPath: string;
|
||||
integration: string | null;
|
||||
|
@ -20,7 +32,7 @@ interface GetInstallPkgRouteOptionsParams {
|
|||
}
|
||||
|
||||
const isPackageExemptFromStepsLayout = (pkgkey: string) =>
|
||||
SPECIAL_PACKAGES.some((pkgname) => pkgkey.startsWith(pkgname));
|
||||
EXCLUDED_PACKAGES.some((pkgname) => pkgkey.startsWith(pkgname));
|
||||
/*
|
||||
* When the install package button is pressed, this fn decides which page to navigate to
|
||||
* by generating the options to be passed to `services.application.navigateToApp`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue