[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:
Kyle Pollich 2022-06-06 18:20:39 -04:00 committed by GitHub
parent d7e6dc3c44
commit 2cc45df536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View file

@ -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>;

View file

@ -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`.