mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[cli/dev] automatically strip xpack config when running --oss (#36403)
* [cli/dev] automatically strip xpack config when running --oss * apply review feedback * remove unrelated change * lodash 3 doesn't have an unset method
This commit is contained in:
parent
a102ca1f97
commit
51ec324a19
2 changed files with 4 additions and 9 deletions
|
@ -70,6 +70,10 @@ function applyConfigOverrides(rawConfig, opts, extraCliOptions) {
|
|||
const has = _.partial(_.has, rawConfig);
|
||||
const merge = _.partial(_.merge, rawConfig);
|
||||
|
||||
if (opts.oss) {
|
||||
delete rawConfig.xpack;
|
||||
}
|
||||
|
||||
if (opts.dev) {
|
||||
set('env', 'development');
|
||||
set('optimize.watch', true);
|
||||
|
@ -212,8 +216,6 @@ export default function (program) {
|
|||
},
|
||||
features: {
|
||||
isClusterModeSupported: CAN_CLUSTER,
|
||||
isOssModeSupported: !IS_KIBANA_DISTRIBUTABLE,
|
||||
isXPackInstalled: XPACK_INSTALLED,
|
||||
isReplModeSupported: CAN_REPL,
|
||||
},
|
||||
applyConfigOverrides: rawConfig => applyConfigOverrides(rawConfig, opts, unknownOptions),
|
||||
|
|
|
@ -29,15 +29,8 @@ interface KibanaFeatures {
|
|||
// that are orchestrated by the "master" process (dev mode only feature).
|
||||
isClusterModeSupported: boolean;
|
||||
|
||||
// Indicates whether we can run Kibana without X-Pack plugin pack even if it's
|
||||
// installed (dev mode only feature).
|
||||
isOssModeSupported: boolean;
|
||||
|
||||
// Indicates whether we can run Kibana in REPL mode (dev mode only feature).
|
||||
isReplModeSupported: boolean;
|
||||
|
||||
// Indicates whether X-Pack plugin pack is installed and available.
|
||||
isXPackInstalled: boolean;
|
||||
}
|
||||
|
||||
interface BootstrapArgs {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue