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

Add new upgrade command #64

Merged
merged 6 commits into from
Mar 8, 2021
Merged

Conversation

Itxaka
Copy link
Contributor

@Itxaka Itxaka commented Mar 3, 2021

Lifted completely from helm, no changes other that removing
autocompletion as we dont have that yet

fixes: #54

@Itxaka Itxaka added the WIP This item is Work in Progress, do not merge! label Mar 3, 2021
@Itxaka Itxaka force-pushed the upgrade_command branch 6 times, most recently from c4f7e90 to 8cec68e Compare March 3, 2021 22:13
cmd/hypper/upgrade.go Outdated Show resolved Hide resolved
cmd/hypper/upgrade.go Outdated Show resolved Hide resolved
internal/test/test.go Outdated Show resolved Hide resolved
@Itxaka Itxaka force-pushed the upgrade_command branch 2 times, most recently from 53d8945 to b53b732 Compare March 5, 2021 08:52
Itxaka added 2 commits March 5, 2021 10:00
Lifted completely from helm, no changes other that removing
autocompletion as we dont have that yet

Signed-off-by: Itxaka <[email protected]>
Instead of using directly the helmCli settings
use our own composite type

Signed-off-by: Itxaka <[email protected]>
Itxaka added 3 commits March 5, 2021 11:26
Picks the name from the chart based of Annotations then
falls back to the default name in the chart.yaml
This allows us to only pass the chart path to upgrade.
If this is called on a new chart install also works as
expected by setting the chartname before calling install

Signed-off-by: Itxaka <[email protected]>
Allows to override the release name via a flag
--release-name STRING which will ignore any
annotations or names in the chart.yml file

Adds the ReleaseName field to the hypper Upgrade struct
to keep track of the release name.

Works both on Upgrade and NewInstall

Signed-off-by: Itxaka <[email protected]>
As we automatically obtaine the release name, the upgrade
tests needs some small fixes to work as expected

Signed-off-by: Itxaka <[email protected]>
@Itxaka Itxaka added ready for review Somebody please take a look at this and review and removed WIP This item is Work in Progress, do not merge! labels Mar 5, 2021
cmd/hypper/dependency_build.go Show resolved Hide resolved
cmd/hypper/upgrade_test.go Show resolved Hide resolved
cmd/hypper/upgrade.go Outdated Show resolved Hide resolved
cmd/hypper/upgrade.go Outdated Show resolved Hide resolved
cmd/hypper/upgrade.go Outdated Show resolved Hide resolved
cmd/hypper/upgrade.go Show resolved Hide resolved
cmd/hypper/upgrade.go Outdated Show resolved Hide resolved
pkg/action/history.go Show resolved Hide resolved
pkg/action/upgrade.go Show resolved Hide resolved
 - Use composite type for History
 - Fix comments that refer to upgrade name
 - Missing doc comments
 - Missing license header

Signed-off-by: Itxaka <[email protected]>
@Itxaka Itxaka requested a review from viccuad March 8, 2021 14:21
Copy link
Member

@viccuad viccuad left a comment

Choose a reason for hiding this comment

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

Approving, let's open an issue for Name() deduplication.

@Itxaka
Copy link
Contributor Author

Itxaka commented Mar 8, 2021

#70

@Itxaka Itxaka merged commit d226e2b into rancher-sandbox:main Mar 8, 2021
@Itxaka Itxaka deleted the upgrade_command branch March 8, 2021 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Somebody please take a look at this and review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hypper upgrade command
4 participants