Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fleet] Use snapshot registry in dev mode #141797

Merged
merged 4 commits into from
Sep 28, 2022

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Sep 26, 2022

Related to: #141462

Fixes the error unable to install apm package 8.5.0. Received status code: 404 and message: [email protected] not found

@sorenlouv sorenlouv requested a review from a team as a code owner September 26, 2022 15:16
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Sep 26, 2022
const branch = appContextService.getKibanaBranch();
if (branch === 'main') {
const isProduction = appContextService.getIsProductionMode();
if (!isProduction) {
Copy link
Member

@nchaulet nchaulet Sep 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have both !isProduction || branch === 'main', to get this working on cloud snapshot?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just checked and looks like on 8.6 cloud snapshot we use the snapshot repository we probably want to keep that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to check for !isProduction || branch === 'main'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to this - I think we need the branch === 'main' check here.

@sorenlouv sorenlouv added the release_note:skip Skip the PR/issue when compiling release notes label Sep 26, 2022
@sorenlouv sorenlouv force-pushed the use-snapshot-registry-in-dev-mode branch from 88b067d to ee3c83a Compare September 27, 2022 22:51
@sorenlouv sorenlouv force-pushed the use-snapshot-registry-in-dev-mode branch from b7583bf to fb6e2ce Compare September 28, 2022 05:40
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @kpollich

@sorenlouv sorenlouv merged commit e8ebc23 into main Sep 28, 2022
@sorenlouv sorenlouv deleted the use-snapshot-registry-in-dev-mode branch September 28, 2022 07:08
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 28, 2022
* [fleet] Use snapshot registry in dev mode

* Update registry_url.ts

* Update registry_url.ts

* Fix jest test

(cherry picked from commit e8ebc23)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.5

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 28, 2022
* [fleet] Use snapshot registry in dev mode

* Update registry_url.ts

* Update registry_url.ts

* Fix jest test

(cherry picked from commit e8ebc23)

Co-authored-by: Søren Louv-Jansen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.5.0 v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants