Port init lock improvements #166
Port init lock improvements #166
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chuckha The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
76eb8d6
to
e2c9fa6
Compare
3425cf3
to
c453805
Compare
lgtm, but would like to have @ncdc give it a look over as well |
I don't know why I can't respond to this comment but I'd be curious to hear your thoughts about why we'd want to keep the struct private. My argument for doing it this way is that this allows consumers to use the struct as they will and define their own interface instead of forcing our interface on them. We aren't writing their programs and don't know how they will consume the InitLocker. |
I can't speak for Andy, but my take here is that this implementation is meant for use by CABPK only and not a general purpose locking mechanism. |
@detiber in that case I still think it should still be exported but in an |
c453805
to
d5c3390
Compare
1c790dd
to
9869d91
Compare
9869d91
to
603e3a2
Compare
7417307
to
99e86cc
Compare
99e86cc
to
46a84d8
Compare
5d911e4
to
679565f
Compare
Signed-off-by: Chuck Ha <chuckh@vmware.com>
679565f
to
9b7e096
Compare
This has been tested with 3 control plane machines and works like a charm |
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
Signed-off-by: Chuck Ha chuckh@vmware.com
What this PR does / why we need it:
This PR ports improvements over from CAPA.
It also updates the tests to use the fake client while still allowing for overriding errors.
Standardize imports.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #138
Special notes for your reviewer:
None
Release note:
/assign @detiber