-
Notifications
You must be signed in to change notification settings - Fork 105
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
feat(zfspv): mounting the root filesystem to remove the dependency on the Operating system #204
Conversation
… the OS We are mounting the individual library to run the zfs binary inside the ZFS-LocalPV daemonset. The problem with this is each OS has different sets of libraries. We need to have different Operator yamls for different OS versions. Here we are mounting the root directory inside the ZFS-LocalPV daemonset Pod which does chroot to this path and run the command. As all the libraries will be available which are present on the host inside the Pod, so we don't need to mount each library here and also it will work for all the Operating systems. To be on the safe side, we are mounting the host's root directory as Readonly filesystem. Signed-off-by: Pawan <pawan@mayadata.io>
Codecov Report
@@ Coverage Diff @@
## master #204 +/- ##
======================================
Coverage 9.88% 9.88%
======================================
Files 20 20
Lines 1163 1163
======================================
Hits 115 115
Misses 1047 1047
Partials 1 1 Continue to review full report at Codecov.
|
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.
looks good to me , do we want to archive the other distribution centric operators in upcoming PR ?
Yes @prateekpandey14 , once we move e2e test cases to point to this yaml, I will cleanup other yamls. |
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.
changes are good
Signed-off-by: Pawan <pawan@mayadata.io>
fixes : #202 and probably #72 also.
Signed-off-by: Pawan pawan@mayadata.io
Why is this PR required? What issue does it fix?:
We are mounting the individual library to run the zfs
binary inside the ZFS-LocalPV daemonset. The problem with this
is each OS has different sets of libraries. We need to have different
Operator yamls for different OS versions.
What this PR does?:
Here we are mounting the root directory inside the ZFS-LocalPV daemonset Pod
which does chroot to this path and run the command. As all the libraries will
be available which are present on the host inside the Pod, so we don't need to mount each
library here and also it will work for all the Operating systems.
Any additional information for your reviewer? :
To be on the safe side, we are mounting the host's root directory
as Readonly filesystem. Will cleanup the centos yamls once we have migrated to this in e2e.
Thanks @jlcox1970 for helping me verify this change on CentOS 8.
Checklist:
<type>(<scope>): <subject>