[8.6] [kbn-pm] Add uid check (#145769) (#145777)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[kbn-pm] Add uid check
(#145769)](https://github.com/elastic/kibana/pull/145769)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jonathan
Budzenski","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2022-11-18T21:35:06Z","message":"[kbn-pm]
Add uid check (#145769)\n\nThis adds the uid check we use in the kibana
entrypoint to kbn-pm. `yarn\r\nkbn bootstrap` will exit if the uid is
0.","sha":"454ca83ff3038daf463007a193cfee25c80950e9","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:prev-minor","v8.7.0"],"number":145769,"url":"https://github.com/elastic/kibana/pull/145769","mergeCommit":{"message":"[kbn-pm]
Add uid check (#145769)\n\nThis adds the uid check we use in the kibana
entrypoint to kbn-pm. `yarn\r\nkbn bootstrap` will exit if the uid is
0.","sha":"454ca83ff3038daf463007a193cfee25c80950e9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145769","number":145769,"mergeCommit":{"message":"[kbn-pm]
Add uid check (#145769)\n\nThis adds the uid check we use in the kibana
entrypoint to kbn-pm. `yarn\r\nkbn bootstrap` will exit if the uid is
0.","sha":"454ca83ff3038daf463007a193cfee25c80950e9"}}]}] BACKPORT-->

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
Kibana Machine 2022-11-18 17:37:40 -05:00 committed by GitHub
parent c2454237bb
commit 673a136bc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@
*/
require('../src/setup_node_env/ensure_node_preserve_symlinks');
require('../src/setup_node_env/root');
require('../src/setup_node_env/node_version_validator');
import('../kbn_pm/src/cli.mjs').catch(function (error) {
console.error('UNHANDLED EXCEPTION:', error.stack);