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

0.12 backport: improvement: using new release endpoint for self-update #5236

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

mkhq
Copy link
Contributor

@mkhq mkhq commented Oct 15, 2023

What this PR does / why we need it:

This is a 0.12 backport of #5229. Tests and code are ported over. ARM support was excluded from the backport since its only available from 0.13.12.

Which issue(s) this PR fixes:

Fixes #4893

Special notes for your reviewer:

* improvement: using a new release endpoint for self-update

* test: fixed self-update tests to mock the release endpoint

* docs: architecture flag in self-update command

* improvement: better error handling when retrieving releases

* test: releases endpoint failure and clarifying comments on desired version

---------

Co-authored-by: Anna Mager <[email protected]>
@mkhq mkhq requested a review from vvagaytsev October 15, 2023 14:22
@vvagaytsev
Copy link
Collaborator

@mkhq thanks for back-porting this! The docs need to be re-generated. The rest test failures and known and expected.

@@ -47,8 +47,7 @@ export const SUPPORTED_ARCHITECTURES: SupportedArchitecture[] = ["x64", "arm64"]
export const SEGMENT_DEV_API_KEY = "D3DUZ3lBSDO3krnuIO7eYDdtlDAjooKW" // ggignore
export const SEGMENT_PROD_API_KEY = "b6ovUD9A0YjQqT3ZWetWUbuZ9OmGxKMa" // ggignore

export const DOCS_BASE_URL = "https://docs.garden.io/v/acorn-0.12"
export const VERSION_CHECK_URL = "https://get.garden.io/version"
export const DOCS_BASE_URL = "https://docs.garden.io"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This must be DOCS_BASE_URL = "https://docs.garden.io/v/acorn-0.12" in the 0.12 branch.

Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

Thank you! 👍

@mkhq mkhq merged commit 34a143c into 0.12 Oct 16, 2023
1 of 2 checks passed
@mkhq mkhq deleted the improvement-backport-version-check-012 branch October 16, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants