Skip to content

try fix last deployed release - #7238

Closed
jason-liew wants to merge 3 commits into
helm:masterfrom
jason-liew:try-fix-last-deployed-release
Closed

jason-liew wants to merge 3 commits into
helm:masterfrom
jason-liew:try-fix-last-deployed-release

Conversation

@jason-liew

Copy link
Copy Markdown

Signed-off-by: Jason Liew [email protected]

@helm-bot helm-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 16, 2019
@jason-liew

Copy link
Copy Markdown
Author

#6850 comment

@bacongobbler

Copy link
Copy Markdown
Member

Hi @jason-liew. Would you mind writing a unit test to cover the case you are trying to fix? That would be much appreciated. Have a look at storage_test.go for ideas. Thanks!

@bacongobbler bacongobbler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

needs unit tests to confirm whether this fixes the issue proposed

@helm-bot helm-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 19, 2019
@jason-liew
jason-liew force-pushed the try-fix-last-deployed-release branch from 6241b7d to 695eb46 Compare December 19, 2019 06:42
Comment thread pkg/storage/storage.go

return ls[0], err
// We want oldest to newest
relutil.SortByRevision(ls)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

usually the order is correct without sort. may be some storage driver need sort.

@jason-liew

Copy link
Copy Markdown
Author

Hi, @bacongobbler unit test updated. Thanks.

@bacongobbler bacongobbler added the v3.x Issues and Pull Requests related to the major version v3 label Jan 8, 2020
@jason-liew

Copy link
Copy Markdown
Author

some similar pr has been merged

@jason-liew jason-liew closed this Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files. v3.x Issues and Pull Requests related to the major version v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants