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

Support storageclass storage updates to v1 #46116

Merged
merged 1 commit into from
May 30, 2017

Conversation

ncdc
Copy link
Member

@ncdc ncdc commented May 19, 2017

What this PR does / why we need it: enable cluster administrators to update storageclasses stored in etcd from storage.k8s.io/v1beta1 to storage.k8s.io/v1.

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: I had a hard time getting the test to work with how it was handling KUBE_API_VERSIONS and RUNTIME_CONFIG. I would appreciate some extra review attention there. Also, I had to hack in a cluster-scoped "namespace" to get the verification portions of the test script to work. I'm definitely open to ideas for how to improve that if needed.

Release note:

Support updating storageclasses in etcd to storage.k8s.io/v1. You must do this prior to upgrading to 1.8.

cc @kubernetes/sig-storage-pr-reviews @kubernetes/sig-api-machinery-pr-reviews @jsafrane @deads2k @saad-ali @enj

@ncdc ncdc added release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/storage Categorizes an issue or PR as relevant to SIG Storage. labels May 19, 2017
@ncdc ncdc added this to the v1.7 milestone May 19, 2017
@k8s-ci-robot k8s-ci-robot added sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 19, 2017
@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 19, 2017
@ncdc
Copy link
Member Author

ncdc commented May 19, 2017

cc @kubernetes/sig-cluster-lifecycle-pr-reviews

@k8s-ci-robot k8s-ci-robot added the sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. label May 19, 2017
@fejta
Copy link
Contributor

fejta commented May 19, 2017

Andy, if you want to request a review from someone please use the new /cc command, so:
/cc @jsafrane @deads2k @saad-ali @enj
/unassign @fejta @jbeda

/assign @jsafrane @saad-ali

@k8s-ci-robot k8s-ci-robot assigned jsafrane and saad-ali and unassigned jbeda and fejta May 19, 2017
@k8s-ci-robot
Copy link
Contributor

@fejta: GitHub didn't allow me to request PR reviews from the following users: enj.

Note that only people with write access to kubernetes/kubernetes can review this PR and authors cannot review their own PRs.

In response to this:

Andy, if you want to request a review from someone please use the new /cc command, so:
/cc @jsafrane @deads2k @saad-ali @enj
/unassign @fejta @jbeda

/assign @jsafrane @saad-ali

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


# Verify that the server is able to read the object.
kube::log::status "Verifying we can retrieve ${resource}/${namespace}/${name} via kubectl"
${KUBECTL} get --namespace=${namespace} ${resource}/${name}
if [ "${namespace}" == "cluster-scoped" ]; then
Copy link
Member

@liggitt liggitt May 22, 2017

Choose a reason for hiding this comment

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

why "cluster-scoped" and not just ""?

Copy link
Member Author

Choose a reason for hiding this comment

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

Um, didn't think of that?

Copy link
Member Author

Choose a reason for hiding this comment

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

@liggitt fixed in latest revision

)

KUBE_OLD_API_VERSION="v1,extensions/v1beta1"
Copy link
Member

Choose a reason for hiding this comment

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

did this even work before setting runtime config?

Copy link
Member Author

Choose a reason for hiding this comment

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

I know this test passed previously, but I have a feeling it was coincidental given that the previous value of this env var is in the wrong format.

@liggitt
Copy link
Member

liggitt commented May 22, 2017

@caesarxuchao would like your eyes on the API_VERSION envvar usage

@caesarxuchao
Copy link
Member

The PR lgtm.

The original code regarding the runtime-config was wrong. I think the test passed because our validation was too relax: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubeapiserver/default_storage_factory_builder.go#L100-L102. It should report an error IMO. @nikhiljindal @lavalamp do you know if the linked code was intentional?

@ncdc ncdc force-pushed the storageclass-etcd-upgrade branch from 62961ce to 538eb3c Compare May 24, 2017 14:44
@ncdc
Copy link
Member Author

ncdc commented May 24, 2017

Bump, anyone else want to review?

@liggitt
Copy link
Member

liggitt commented May 24, 2017

LGTM

@ncdc
Copy link
Member Author

ncdc commented May 24, 2017

@smarterclayton FYI we need this so admins can update storageclasses in etcd to v1 prior to upgrading to kube 1.8.

@ncdc
Copy link
Member Author

ncdc commented May 24, 2017

@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this (slow namespace deletion)

@ncdc
Copy link
Member Author

ncdc commented May 24, 2017

@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this (slow namespace deletion) #20051

@smarterclayton
Copy link
Contributor

/approve

Maybe wait to get rest of lgtm?

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 25, 2017
@liggitt
Copy link
Member

liggitt commented May 30, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 30, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt, ncdc, smarterclayton

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@ncdc
Copy link
Member Author

ncdc commented May 30, 2017

@k8s-bot pull-kubernetes-e2e-kops-aws test this

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit d621ebc into kubernetes:master May 30, 2017
@ncdc ncdc deleted the storageclass-etcd-upgrade branch October 22, 2018 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/storage Categorizes an issue or PR as relevant to SIG Storage. 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.

10 participants