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

Update Image Tag to v9.99.9-dev only for ghcr/kanisterio images #1623

Merged
merged 5 commits into from
Sep 8, 2022

Conversation

akankshakumari393
Copy link
Contributor

@akankshakumari393 akankshakumari393 commented Sep 6, 2022

Signed-off-by: Akanksha Kumari akankshakumari393@gmail.com

Change Overview

We generally use v9.99.9-dev images for Integration test. And for that when we register an app we set the third argument of NewBlueprint function to true, It overwrites all the images in the blueprint to use v9.99.9-dev tag. Now logic would also update the tag of the images in the blueprint that are not from ghcr.io/kanisterio repo, which might later fail because of ErrPullImage

This PR make sure that we are only updating of the tag of images which are from "ghcr.io/kanisterio" repo.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

Tested the changes cockroachDB blueprint, where we are using "cockroachdb/cockroach" image in the blueprint.
The tag of this image was not updated.

…f it has ghcr/kanisterio prefix

Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2022

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Sep 6, 2022
…f it has ghcr/kanisterio prefix

Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
@akankshakumari393 akankshakumari393 marked this pull request as ready for review September 8, 2022 08:59
@akankshakumari393
Copy link
Contributor Author

ok-to-test

1 similar comment
@akankshakumari393
Copy link
Contributor Author

ok-to-test

pkg/app/bp.go Show resolved Hide resolved
pkg/app/bp.go Outdated Show resolved Hide resolved
pkg/app/bp.go Outdated Show resolved Hide resolved
Kanister automation moved this from In Progress to Reviewer approved Sep 8, 2022
@mergify mergify bot merged commit ea16889 into master Sep 8, 2022
Kanister automation moved this from Reviewer approved to Done Sep 8, 2022
@mergify mergify bot deleted the update_tag_logic branch September 8, 2022 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants