-
Notifications
You must be signed in to change notification settings - Fork 807
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
Update from version 0.4 to 0.5 #514
Comments
I'm facing the same issue on an EKS cluster at version 1.15.11 when trying to upgrade from version 0.4 to 0.5 of EBS driver. |
You're actually upgrading past 0.5. The issue is that 46235c5 (part of 0.6) changed the Upgrading to 0.5 would probably work ( Delete and reinstall is really your only option. You can probably just delete the Deployment and Daemonset though, the rest of the updates should apply over the top okay. It's slightly odd, because 0.4 didn't have a Deployment. It did have a Daemonset though, so the problem would still occur. I suspect you were on a version between 0.4 and 0.5 already. |
If no strong reason, we need to fix this by keeping the old |
The match label being added (app.kubernetes.io/name) is a recommended kubernetes label. It already existed in the resources created by the helm chart (links below) which we started to use to generate the kustomize files. I would have added more of the recommended labels but I was trying to maintain as much parity with the previous chart and files. A change could certainly be made to leave them out of the generated files. One reason to keep them is that starting with helm 3.2.0 if you add the correct labels/annotations to resources you can get helm to adopt them so a user could switch to using the chart if they wanted to. I don't think that the adoption would work if the selector labels didn't match those in the chart. It would cause the same issue that is currently being seen. I guess the real question is whether the owners want the app.kubernetes.io/name to be a matchlabel for the kustomize resources. If so then it will be mildly painful whenever it is added. If the owners decide they would like it removed they can assign this issue to me and I will take care of it. @leakingtapan do you want to decide what you and the other owners would like to do and let me know? https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/475/files#diff-114310c3d7c89a06be5088b7b4a127c9L12 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
It looks like this problem will still exist when upgrading an 0.5.0 or older installation to 0.6.0 or later, unless the old version is uninstalled (or at least the ebs-csi-node It's possible other things in the system will have the same |
I think this can be worked around using This should "update" (by replacing) the resources currently in the cluster to have the additional labels which should allow an upgrade. |
I think to change the immutable field, you need At which point you might as well |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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. |
/kind bug
What happened?
When I issued kubectl apply -k "github.com/kubernetes-sigs/aws-ebs-csi-driver/deploy/kubernetes/overlays/stable/?ref=master" I got the following error:
What you expected to happen?
Upgrade successfully
How to reproduce it (as minimally and precisely as possible)?
kubectl apply -k "github.com/kubernetes-sigs/aws-ebs-csi-driver/deploy/kubernetes/overlays/stable/?ref=master"
when u have 0.4 on EKS v1.16.8-eks-e16311
Environment
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-21T14:51:23Z", GoVersion:"go1.14.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.8-eks-e16311", GitCommit:"e163110a04dcb2f39c3325af96d019b4925419eb", GitTreeState:"clean", BuildDate:"2020-03-27T22:37:12Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
Driver version:
Current: 0.4
The text was updated successfully, but these errors were encountered: