add support for binary_data field in config_map_v1_data#2616
add support for binary_data field in config_map_v1_data#2616JaylonmcShan03 wants to merge 5 commits intomainfrom
Conversation
There was a problem hiding this comment.
It seems that data attribute is still required regardless of binary_data being set or not. IMO, it makes more sense to have an OR type of relationship. There is a use-case where a CM would only contain binary data (like ones produced by kubectl create cm 'test' --from-file=...).
However, more importantly, destroying the resource doesn't remove the binary_data items, but does remove the ones under data. We should stay consistent across the two.
|
@alexsomesan Regarding this portion of feedback "destroying the resource doesn't remove the binary_data items, but does remove the ones under data. We should stay consistent across the two." Are you stating currently for the |
1fd1570 to
78a2403
Compare
I just din a hands-on test and it looks like the destroy functionality performs as expected. Setting the |
alexsomesan
left a comment
There was a problem hiding this comment.
@JaylonmcShan03 I tested this change specifically for the observation I made about delete and it looks like it's working as expected. Setting the value of the binary_data attribute to empty or nil has an effect equivalent to delete.
In short, looks good. Let's ship it :)
78a2403 to
83c1e14
Compare
Description
Fixes #2467
This PR enhances the kubernetes_config_map_v1_data resource by introducing the binary_data field
Acceptance tests
Output from acceptance testing:
Release Note
Release note for CHANGELOG:
References
Community Note