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

PMM-12573 Update podman via UI. #3128

Open
wants to merge 12 commits into
base: v3
Choose a base branch
from
Open

Conversation

BupycHuk
Copy link
Member

@BupycHuk BupycHuk commented Aug 5, 2024

PMM-12573

Link to the Feature Build: SUBMODULES-3682

If this PR adds or removes or alters one or more API endpoints, please review and add or update the relevant API documents as well:

  • API Docs updated

If this PR is related to some other PRs in this or other repositories, please provide links to those PRs:

  • Links to related pull requests (optional).

Copy link

codecov bot commented Aug 5, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 43.61%. Comparing base (ab83e33) to head (17312aa).

Files with missing lines Patch % Lines
managed/services/server/updater.go 40.00% 16 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #3128      +/-   ##
==========================================
- Coverage   44.75%   43.61%   -1.14%     
==========================================
  Files         360      360              
  Lines       36153    43930    +7777     
==========================================
+ Hits        16179    19162    +2983     
- Misses      18311    23103    +4792     
- Partials     1663     1665       +2     
Flag Coverage Δ
admin 11.49% <ø> (+<0.01%) ⬆️
agent 52.65% <ø> (-0.32%) ⬇️
managed 45.16% <40.00%> (-1.69%) ⬇️
vmproxy 68.57% <ø> (+1.90%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BupycHuk BupycHuk marked this pull request as ready for review August 6, 2024 10:01
@BupycHuk BupycHuk requested a review from a team as a code owner August 6, 2024 10:01
@BupycHuk BupycHuk requested review from idoqo and JiriCtvrtka and removed request for a team August 6, 2024 10:01
@BupycHuk BupycHuk changed the title PMM-12573 Update UI podman. PMM-12573 Update podman via UI. Aug 6, 2024
@@ -1,5 +1,5 @@
PMM_WATCHTOWER_HOST=http://watchtower:8080
PMM_WATCHTOWER_TOKEN=123
PMM_SERVER_UPDATE_VERSION=docker.io/perconalab/pmm-server:3-dev-container
PMM_DEV_UPDATE_DOCKER_IMAGE=docker.io/perconalab/pmm-server:3-dev-container
Copy link
Member Author

Choose a reason for hiding this comment

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

it will be dropped before GA

@@ -409,6 +423,27 @@ func (up *Updater) checkWatchtowerHost() error {
return nil
}

func (up *Updater) updateEnvironmentVariables(filename string, name string) error {
if len(strings.Split(name, "/")) < 3 {
name = "docker.io/" + name
Copy link
Member Author

Choose a reason for hiding this comment

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

podman requires full name to update.

@@ -1,5 +1,5 @@
PMM_WATCHTOWER_HOST=http://watchtower:8080
PMM_WATCHTOWER_TOKEN=123
PMM_SERVER_UPDATE_VERSION=docker.io/perconalab/pmm-server:3-dev-container
PMM_DEV_UPDATE_DOCKER_IMAGE=docker.io/perconalab/pmm-server:3-dev-container
PMM_IMAGE={{ pmm_server_image_name }}
PMM_DISTRIBUTION_METHOD={{ pmm_distribution_method }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just small thing there is missing empty line at end of file.

PMM_WATCHTOWER_HOST=http://watchtower:8080
PMM_WATCHTOWER_TOKEN=123
PMM_IMAGE=docker.io/perconalab/pmm-server:3-dev-latest
PMM_DISTRIBUTION_METHOD=ami
Copy link
Contributor

Choose a reason for hiding this comment

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

Just small thing there is missing empty line at end of file.

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.

3 participants