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

GCI: Add two GCI specific metadata pairs #25105

Merged
merged 1 commit into from
May 5, 2016
Merged

GCI: Add two GCI specific metadata pairs #25105

merged 1 commit into from
May 5, 2016

Conversation

andyzheng0831
Copy link

This PR adds two GCI specific metadata pairs when using GCI image.

(1) "gci-update-strategy": by default the GCI in-place updater is enabled. It means that when a new image is released, the instance on the old image will be upgraded to the new image. In this change, we turn it off;

(2) "gci-ensure-gke-docker": GCI is built with two versions of docker. When this metadata is set to "true", the version satisfying kubernetes qualification will be used. Setting this metadata prevents from using incorrect docker version.

@andyzheng0831
Copy link
Author

@roberthbailey @dchen1107 @zmerlynn please review it. We also need it in 1.2.X releases. Please set needed labels and milestone.

cc/ @fabioy @wonderfly FYI

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels May 3, 2016
@andyzheng0831
Copy link
Author

@k8s-bot unit test this issue #24704

@dchen1107 dchen1107 assigned dchen1107 and unassigned brendandburns May 4, 2016
@dchen1107 dchen1107 added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-label-needed labels May 4, 2016
@dchen1107 dchen1107 added this to the v1.2 milestone May 4, 2016
@@ -18,17 +18,45 @@

# The configuration is based on upstart, which is in Ubuntu up to 14.04 LTS (Trusty).
# Ubuntu 15.04 and above replaced upstart with systemd as the init system.
# Consequently, the configuration cannot work on these images.
# Consequently, the configuration cannot work on these images. In release-1.2 branch,
# GCI and Trusty share the configuration code. We have to keep the GCI specific code
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we have to worry about keeping this code separate on the master branch? Is it just to make cherry picks easier?

Copy link
Author

Choose a reason for hiding this comment

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

I am preparing for a cluster/gce/gci dir which serves gci only. But such a big change will be in 1.3 only. For 1.2.X gci will still use the code in cluster/gce/trusty. Later if a PR breaking GCI is cherry picked to release-1.2, we will have to make 3 PR: one for fixing master branch cluster/gce/gci, one for fixing master branch cluster/gce/trusty, and another for cherry-pick into cluster/gce/trusty in release-1.2. If we only keep gci-specific code in master branch, it is hard to cherry-pick into release-1.2 as there is no dir cluster/gce/gci

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, so it's to make cherry picks easier. That's what I thought.

@roberthbailey roberthbailey added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label May 4, 2016
@dchen1107
Copy link
Member

LGTM

@dchen1107 dchen1107 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 4, 2016
@dchen1107
Copy link
Member

From the code, I don't think your pr breaks the trusty support, but want to double check it.

@andyzheng0831
Copy link
Author

No, it does not break trusty. I had run e2e on 4 scenarios: (1) Master + nodes on trusty; (2) Master on trusty, nodes on ContainerVM; (3) Master + nodes on GCI; (4) Master on GCI, nodes on ContainerVM. They are all green.

@roberthbailey roberthbailey added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label May 4, 2016
@andyzheng0831
Copy link
Author

andyzheng0831 commented May 5, 2016

@k8s-bot test this issue #23433

@k8s-bot
Copy link

k8s-bot commented May 5, 2016

GCE e2e build/test passed for commit 73ee508.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented May 5, 2016

GCE e2e build/test passed for commit 73ee508.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 8457393 into kubernetes:master May 5, 2016
roberthbailey added a commit that referenced this pull request May 5, 2016
…-#25105-upstream-release-1.2

Automated cherry pick of #25105
@k8s-cherrypick-bot
Copy link

Commit found in the "release-1.2" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked.

@andyzheng0831 andyzheng0831 deleted the metadata branch May 5, 2016 18:19
shyamjvs pushed a commit to shyamjvs/kubernetes that referenced this pull request Dec 1, 2016
…ry-pick-of-#25105-upstream-release-1.2

Automated cherry pick of kubernetes#25105
shouhong pushed a commit to shouhong/kubernetes that referenced this pull request Feb 14, 2017
…ry-pick-of-#25105-upstream-release-1.2

Automated cherry pick of kubernetes#25105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants