-
Notifications
You must be signed in to change notification settings - Fork 1k
add support for binary_data field in config_map_v1_data #2616
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
base: main
Are you sure you want to change the base?
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.
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 |
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.
@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