-
Notifications
You must be signed in to change notification settings - Fork 196
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
Provide support for property conversions of JSON properties #1574
Conversation
@@ -30,6 +30,7 @@ var ( | |||
ControllerRuntimeAdmission = MakeExternalPackageReference("sigs.k8s.io/controller-runtime/pkg/webhook/admission") | |||
GitHubErrorsReference = MakeExternalPackageReference("github.com/pkg/errors") | |||
|
|||
|
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.
minor: Extra newline here
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.
Fixed by go fmt
) | ||
|
||
type Person struct { | ||
KnownReference genruntime.KnownResourceReference `json:"known-reference"` |
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.
minor: This should probably be knownReference
in the JSON (even though it doesn't matter at all)
Codecov Report
@@ Coverage Diff @@
## master #1574 +/- ##
==========================================
- Coverage 63.43% 63.41% -0.03%
==========================================
Files 181 181
Lines 11796 11797 +1
==========================================
- Hits 7483 7481 -2
- Misses 3644 3648 +4
+ Partials 669 668 -1
Continue to review full report at Codecov.
|
What this PR does / why we need it:
We have properties of type
v1.JSON
but they were not supported by the property conversions needed for storage variants.At the same time, we generalized two existing property converters to allow support for known types to be easily added.
How does this PR make you feel:
If applicable: