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

fix(upgrade): add support for images having more than one ":" #1557

Merged
merged 3 commits into from
Dec 15, 2019

Conversation

shubham14bajpai
Copy link
Contributor

@shubham14bajpai shubham14bajpai commented Dec 15, 2019

Signed-off-by: shubham [email protected]

What this PR does / why we need it:
This PR fixes the getBaseImage function which only expected only one : to be present before the image tag. There can be cases where proxy image url can have more than one :.
Refer: openebs/openebs#2857

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Checklist:

  • Fixes #
  • Labelled this PR & related issue with documentation tag
  • PR messages has document related information
  • Labelled this PR & related issue with breaking-changes tag
  • PR messages has breaking changes related information
  • Labelled this PR & related issue with requires-upgrade tag
  • PR messages has upgrade related information
  • Commit has unit tests
  • Commit has integration tests

pkg/upgrade/upgrader/helper_test.go Show resolved Hide resolved
pkg/upgrade/upgrader/helper_test.go Show resolved Hide resolved
pkg/upgrade/upgrader/helper_test.go Show resolved Hide resolved
pkg/upgrade/upgrader/helper_test.go Show resolved Hide resolved
pkg/upgrade/upgrader/helper_test.go Show resolved Hide resolved
Signed-off-by: shubham <[email protected]>
Copy link

@davidkarlsen davidkarlsen left a comment

Choose a reason for hiding this comment

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

Maybe raise error if no tag, else LGTM

Copy link

@AmitKumarDas AmitKumarDas left a comment

Choose a reason for hiding this comment

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

/lgtm

@AmitKumarDas AmitKumarDas changed the title fix(upgarde): add support for images having more than one ":" fix(upgrade): add support for images having more than one ":" Dec 15, 2019
@AmitKumarDas AmitKumarDas merged commit 64f658f into openebs-archive:master Dec 15, 2019
shubham14bajpai added a commit to shubham14bajpai/maya that referenced this pull request Dec 15, 2019
…s-archive#1557)

* fix(upgarde): add support for images having more than one ":"

Signed-off-by: shubham <[email protected]>
@davidkarlsen
Copy link

kmova pushed a commit that referenced this pull request Dec 15, 2019
* fix(upgarde): add support for images having more than one ":"

Signed-off-by: shubham <[email protected]>
@davidkarlsen
Copy link

Just ran the jobs to upgrade - works excellent using --to-version-image-prefix

shubham14bajpai added a commit to shubham14bajpai/maya that referenced this pull request Dec 27, 2019
…s-archive#1557)

* fix(upgarde): add support for images having more than one ":"

Signed-off-by: shubham <[email protected]>
@shubham14bajpai shubham14bajpai deleted the fix branch January 6, 2020 08:19
@kmova kmova added this to the 1.6.0 milestone Jan 10, 2020
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.

5 participants