-
Notifications
You must be signed in to change notification settings - Fork 555
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 storing cephfs omap data store in radosnamespace via cli argument #4652
Conversation
de2a831
to
23fe029
Compare
23fe029
to
ebaa395
Compare
@nixpanic Linting was hopefully fixed |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions. |
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
ebaa395
to
6704586
Compare
Is this going to be available in the next release? |
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.
LGTM. Thanks @zerotens
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.
one nit.
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
Signed-off-by: Andreas <zerotens@users.noreply.github.com>
Signed-off-by: Andreas <zerotens@users.noreply.github.com>
6704586
to
dc0ddeb
Compare
Pull request has been modified.
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 7afddb4 |
/test ci/centos/upgrade-tests-cephfs |
/test ci/centos/k8s-e2e-external-storage/1.27 |
/test ci/centos/upgrade-tests-rbd |
/test ci/centos/mini-e2e-helm/k8s-1.27 |
/test ci/centos/k8s-e2e-external-storage/1.30 |
/test ci/centos/k8s-e2e-external-storage/1.28 |
/test ci/centos/mini-e2e/k8s-1.27 |
/test ci/centos/k8s-e2e-external-storage/1.29 |
/test ci/centos/mini-e2e-helm/k8s-1.30 |
/test ci/centos/mini-e2e-helm/k8s-1.29 |
/test ci/centos/mini-e2e-helm/k8s-1.28 |
/test ci/centos/mini-e2e/k8s-1.29 |
/test ci/centos/mini-e2e/k8s-1.30 |
/test ci/centos/mini-e2e/k8s-1.28 |
Describe what this PR does
Fixes #4599
This PR adds a new cli argument to let users override the current hardcoded radosNamespace "csi" used in CephFS.
ceph-csi/internal/cephfs/util/util.go
Line 24 in ce3ec6a
Needed is this for multitenant environments where one ceph cluster with one cephfs filesystem is used by multiple kubernetes clusters.
This allows storing the state of every cephfs instance / kubernetes cluster in their own radosNamespaces and allows finer controlled access for cephfs.
This PR also makes those two needed parameters --instanceid (rbd & cephfs Helm Chart) and --radosnamespacecephfs (cephfs Helm Chart) configurable via helm chart.
Is there anything that requires special attention
Is the change backward compatible?
Yes
Are there concerns around backward compatibility?
No, the default values in code have not been changed but are now overrideable via helm and cli arguments.
Future concerns
Depending on future usage of the NFS Controller, currently the NFS controller is using the CephFS variables cephfs.CSIInstanceID and fsutil.RadosNamespace which is now overrideable with the cli argument
--radosnamespacecephfs
and--instanceid
.ceph-csi/internal/nfs/controller/controllerserver.go
Line 48 in ce3ec6a
ceph-csi/internal/nfs/controller/controllerserver.go
Line 49 in ce3ec6a
ceph-csi/internal/nfs/controller/volume.go
Line 291 in ce3ec6a
ceph-csi/internal/nfs/controller/volume.go
Line 329 in ce3ec6a
Testing
As i don't have a nice way of testing it and this is my first PR and go code for some time i would appreciate an detailed review.