Conversation
|
The corresponding changes have not been commited to ceph yet. Tests are expected to fail until ceph/ceph#47934 is merged. |
4ce961f to
c448d15
Compare
nixpanic
left a comment
There was a problem hiding this comment.
Nice, thanks!
We should be able to use that in Ceph-CSI 👍
c448d15 to
2691ac0
Compare
Pull request has been modified.
|
@ansiwen @anoopcs9 how do you feel about having only the tests behind the build tag? The code is all changes to existing structs and is backwards compatible with older mgrs if you don't set sectype. I'd like to get this one merged before the next release so if you could provide feedback on this soon, I'd really appreciate it. |
Git history tells me that we have had similar changes in the past and I am totally in favour of current approach. |
anoopcs9
left a comment
There was a problem hiding this comment.
lgtm, a minor comment.
So, we are actually talking about two different tags, right? I don't have a problem with setting the build constraint The purpose of the |
|
Right, it should probably have preview in addiiton to ceph_main where ceph_main is present. Splitting the code up is (I think) not worth it because the changes are a new type (aliased string), some constants for that type and an addition to existing structs. The only way to really split the code would be more hassle (for the users, I think). So I think I'll fix the tagging in test.go file and leave the code as it is. |
Ceph is adding a flag to get/set NFS-Ganesha's SecType configuration opiton. This can be used to specify authentication types for an export. These changes only affect struct fields and are fully backwards compatible with existing code. Therefore no API status flags are added to the code. Test cases added - with api buildtag for ceph main branch. Signed-off-by: John Mulligan <jmulligan@redhat.com>
2691ac0 to
4dc74a7
Compare
|
Updated. fixed the build tags on the test |
|
Oh.. PR is still in Draft state? I take the liberty to mark it as ready. |
Oops, thanks. I had left it in draft for deciding on the code tagging but meant to change ti for ready-for-review yesterday after I updated the test file. |
Hmm, I can't follow that thought.
I'm not objecting your decision, I agree it's a small impact on the exported API, and if you are confident that you won't need to revise, I'm fine. However, I don't understand the "for the users" part. How does it make a difference for the user? It should not matter for the user in which files the exported identifiers are defined. In any case I'm going to approve. If you decide to merge as is, just remove the do-not-merge tag. |
ansiwen
left a comment
There was a problem hiding this comment.
LGTM (beside the comments)
|
Regarding making things harder for a user of the API - I had suggested two ways of putting some of the code behind a build tag: (a) was to move the constants to a separate file, but (b) was to add a method like Does that explain my earlier comments well enough? |
Yes, thanks. I was confused, because what I would have done has no impact for the users, and I thought you are referring to that. (Which is: moving all exported identifiers, that you want to change, to a file |
Ceph is adding a flag to get/set NFS-Ganesha's SecType configuration opiton. This can be used to specify authentication types for an export. These changes only affect struct fields and are fully backwards compatible with existing code. Therefore no API status flags are added to the code.
Test cases added - with api buildtag for ceph main branch.
Fixes: #764
Checklist
//go:build ceph_preview<-- see description