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

feat(installer): support upgrade through installer #939

Merged
merged 5 commits into from
Dec 1, 2020

Conversation

leoryu
Copy link
Contributor

@leoryu leoryu commented Nov 26, 2020

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@@ -142,7 +142,7 @@ function clean_old_data() {
function start_installer() {
echo "Step.5 start tke-installer [doing]"

docker run $OPTIONS "tkestack/tke-installer-${ARCH}:$VERSION"
docker run $OPTIONS "tkestack/tke-installer-${ARCH}:$VERSION" /app/bin/tke-installer $@
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think need duplicate /app/bin/tke-installer again here

if len(depl.Spec.Template.Spec.Containers) == 0 {
return fmt.Errorf("%s has no containers", com)
}
depl.Spec.Template.Spec.Containers[0].Image = images.Get().TKEPlatformController.FullName()
Copy link
Contributor

Choose a reason for hiding this comment

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

depl.Spec.Template.Spec.InitContainers[0].Image

@huxiaoliang
Copy link
Contributor

@leoryu please handle the tke.json already exist case and retest

@huxiaoliang huxiaoliang merged commit 10e2ac1 into tkestack:master Dec 1, 2020
willemswang pushed a commit to willemswang/tke that referenced this pull request Dec 3, 2020
* feat(installer): support upgrade through installer

* fix(installer): fix installer registry nil pointer

* feat(platform): remove save third party registry

* feat(platform): load tke data before upgrade

* feat(platform): move load func to installer
pavlelee pushed a commit to GaoXiaodong/tke that referenced this pull request Dec 16, 2020
* feat(installer): support upgrade through installer

* fix(installer): fix installer registry nil pointer

* feat(platform): remove save third party registry

* feat(platform): load tke data before upgrade

* feat(platform): move load func to installer
pavlelee pushed a commit to GaoXiaodong/tke that referenced this pull request Dec 16, 2020
pavlelee pushed a commit to GaoXiaodong/tke that referenced this pull request Dec 16, 2020
@leoryu leoryu deleted the installer_upgrade branch May 8, 2021 06:23
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.

None yet

2 participants