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
object: add check specific to name and namespace for ceph cosi driver #13623
object: add check specific to name and namespace for ceph cosi driver #13623
Conversation
// Set the default CephCOSIDriver name if not already set | ||
if cephCOSIDriver.Name == "" { | ||
cephCOSIDriver.Name = CephCOSIDriverName | ||
// The ceph-cosi-driver CRD must have the name "ceph-cosi-driver" |
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.
Why? This seems like an unnecessary limitation when the operator can just know to query for a single CephCOSIDrivers in the operator namespace.
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.
Changed accordingly
f4108c9
to
613b5a1
Compare
9b0eecf
to
6d57324
Compare
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.
Fix golint errors.
The name for cephcosi driver should be ceph-cosi-driver and namespace should same as the rook operator. Otherwise request need to be failed. Fixes: rook#13025 Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
6d57324
to
5b5e1c0
Compare
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 changes look good. Since there aren't integration tests for these error cases of more than one cosi driver, could you comment if it's tested manually in minikube?
Test on my minikube setup
logs:
|
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 think this looks good. Thanks for including testing output and adding unit tests for the error cases.
object: add check specific to name and namespace for ceph cosi driver (backport #13623)
The name for cephcosi driver should be ceph-cosi-driver and namespace should same as the rook operator. Otherwise request need to be failed.
Fixes: #13025
Checklist: