-
Notifications
You must be signed in to change notification settings - Fork 769
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
Expose two Read methods in gktest #1651
Expose two Read methods in gktest #1651
Conversation
Signed-off-by: juliankatz <[email protected]>
Signed-off-by: juliankatz <[email protected]>
Signed-off-by: juliankatz <[email protected]>
Signed-off-by: juliankatz <[email protected]>
Signed-off-by: juliankatz <[email protected]>
I have an opportunity to re-use code made written in gktest, as long as the necessary functions are public. This PR makes the following two functions in the gktest package public. They are (with their newly capitalized names): - ReadTemplate() - ReadObject() Signed-off-by: juliankatz <[email protected]>
6d755b8
to
fc0af6e
Compare
@@ -72,13 +71,10 @@ func readUnstructured(bytes []byte) (*unstructured.Unstructured, error) { | |||
return u, nil | |||
} | |||
|
|||
// TODO(willbeason): Remove once ToVersionless() is threadsafe. |
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.
Is this threadsafe now to remove the lock?
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.
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've also confirmed that these frameworks changes are in gatekeeper already
… refactor-read-constraint-in-gator Signed-off-by: juliankatz <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1651 +/- ##
==========================================
+ Coverage 52.05% 52.16% +0.11%
==========================================
Files 98 98
Lines 8693 8691 -2
==========================================
+ Hits 4525 4534 +9
+ Misses 3806 3798 -8
+ Partials 362 359 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
… refactor-read-constraint-in-gator Signed-off-by: juliankatz <[email protected]>
… refactor-read-constraint-in-gator Signed-off-by: juliankatz <[email protected]>
I have an opportunity to re-use code made written in gktest, as long as
the necessary functions are public. This PR makes the following two
functions in the gktest package public. They are (with their newly
capitalized names):
Signed-off-by: juliankatz [email protected]