-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Editing annotations on an existing PVC #66
Comments
@fradeve The CSI spec (at least at the time when I was implementing this) had no notion of changing PVC params. The CSI Node Plugin mounts as specified by the PV and not the PVC. If you change the annotation on the PVC, this sadly has no effect on the PV and we don't get a call to the Controller Plugin to update/remount the PV. So if the spec hasn't improved in that area, I do not think that you'll get around re-creating the PVC. |
Thanks for clarifying this 👍 Eventually I figured out that I had to re-create the PVC altogether, and that worked 👍 |
Can this be closed? |
@ofek I'd like to keep it open to see if there's a way to achieve that before I close. |
Hi all -- thanks for bringing us this project, it's just great!
I am using v0.6.1 I have updated an existing PVC with the following annotation (
+
shows the addition):The PVC has been correctly updated, and I killed the Pod mounting this PVC so that it has been re-mounted.
Looking at the logs in the
csi-gcs
Pod I see the following when the volume is mounted:I can see how some of the annotations that were originally in the PVC are showing up in the gcsfuse command (e.g.
uid
orgid
) but I can't see thelimit-ops-per-sec
option anywhere.So I wonder: are these kind of updates to the PVC actually picked up when re-mounting the volume, or do they apply only when the PVC is created the first time?
Thanks
Update
I have created a fresh new PVC and mounted it on a deployment and this
csi-gcs
is logging the following:it seems that creating a new PVC will use the right gcsfuse flags, but updating an existing PVC doesn't guarantee that gcsfuse flags are updated.
The text was updated successfully, but these errors were encountered: