mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[es] skip exact version warning in dev
This commit is contained in:
parent
29d8a9de92
commit
479f95e9e1
1 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,11 @@ export function ensureEsVersion(server, kibanaVersion) {
|
|||
|
||||
// It's acceptable if ES and Kibana versions are not the same so long as
|
||||
// they are not incompatible, but we should warn about it
|
||||
if (esNode.version !== kibanaVersion) {
|
||||
// In development we ignore, this can be expected when testing against snapshots
|
||||
// or across version qualifiers
|
||||
const isProd = server.config().get('env.prod');
|
||||
const versionMismatch = esNode.version !== kibanaVersion;
|
||||
if (isProd && versionMismatch) {
|
||||
warningNodes.push(esNode);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue