-
Notifications
You must be signed in to change notification settings - Fork 16
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: empty returned data field in configmap and secret tables #150
fix: empty returned data field in configmap and secret tables #150
Conversation
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
Thanks @bigdatasourav ! Is there anything else I can do to help move this forward ? 馃檪 cc. @misraved |
@hileef the changes look good 馃憤, however, I was wondering if we could have handled it just by using the Transform function for the For instance: In
with
@bigdatasourav thoughts?? |
Hmmm I could be wrong but my understanding of the code's behaviour on this line
nil ( even though it should have been filled in from *configmap.Data which contains the correct value coming from the kube API ),so unless I'm missing something, I am not sure how the transform function would side-step this 馃 But let's discuss it further, I could be missing something 馃檪 馃檹 |
@misraved, Transform function will work in the above scenario; it will map the |
Thanks @hileef and @bigdatasourav for the inputs 馃憤. I think the solution provided by @hileef is a better fit than the Transform function 馃憤. |
see details in #149
this PR proposes to rename the Data field in the parsedContent struct from Data to ParsedData,
in order to avoid collisions with the Data field from other structs parsedContent is being merged in.
note: it was not clear to me where I could add something to allow for automated tests to ensure no regressions in the future (for example with other possible fields 馃 )
note: tested locally through the
make install
to validate I was able to retrieve configmap data once more 馃檪