-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Merged by Bors] - Shorten the CSI registration path #231
Conversation
@@ -69,7 +69,7 @@ spec: | |||
volumes: | |||
- name: registration-sock | |||
hostPath: | |||
path: /var/lib/kubelet/plugins_registry/secrets.stackable.tech-reg.sock | |||
path: /var/lib/kubelet/plugins_registry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know much about this but...did it point to a directory before as well?
And is there any chance of a namespace clash?
And...does YAML support comments? If yes...this'd be a great place for a link to the issue...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The node-registrar is hard-coded to use $REGISTRATION_SOCK_PATH/$CSI_DRIVER-reg.sock
. This lead to the actual path being /var/lib/kubelet/plugins_registry/secrets.stackable.tech-reg.sock/secrets.stackable.tech-reg.sock
rather than the correct /var/lib/kubelet/plugins_registry/secrets.stackable.tech-reg.sock
.
In most cases it still worked fine, because kubelet scans the plugin registry path recursively... except for that it can't connect when the path gets too long (#229).
I can add a comment about it, sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for being pedantic and I do know git blame exists but I find it incredibly helpful if code links to issues
# node-driver-registrar appends a driver-unique filename to this path to avoid conflicts
# see https://github.com/stackabletech/secret-operator/issues/229 for why this path should not be too long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point.
@@ -7,8 +7,13 @@ All notable changes to this project will be documented in this file. | |||
### Changed | |||
|
|||
- operator-rs: 0.25.0 -> 0.27.1 ([#212]). | |||
- Shortened the registration socket path for Microk8s compatibility ([#231]). | |||
- After upgrading you will need to | |||
`rmdir /var/lib/kubelet/plugins_registry/secrets.stackable.tech-reg.sock` manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if you don't?
I assume it'll just be unused but not dangerous?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
secret-operator will fail to start back up until it's done (or rather, secret-op itself will start, but the node-driver-registrar sidecar will fail).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! Well, then my breaking change label is correct after all.....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, yes.
I labeled this as "breaking" because we don't have a better label this second. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll approve it. Not sure if anyone else wants to have a look.
Ugh, called it too early, there seem to be more problems involved for microk8s... |
I'll leave this for just the path length issue, and submit a separate PR for the rest... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for fixing this! Looking forward to the other change
bors r+ |
Build failed: |
bors retry |
Pull request successfully merged into main. Build succeeded: |
Description
See #229
Review Checklist
Once the review is done, comment
bors r+
(orbors merge
) to merge. Further information