-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add configmap/secret hash functionality #48
Add configmap/secret hash functionality #48
Conversation
Signed-off-by: Alina Buzachis <[email protected]>
11c6cbf
to
c9bea69
Compare
Codecov Report
@@ Coverage Diff @@
## main #48 +/- ##
=======================================
Coverage 23.17% 23.17%
=======================================
Files 1 1
Lines 151 151
Branches 24 24
=======================================
Hits 35 35
Misses 111 111
Partials 5 5 Continue to review full report at Codecov.
|
Signed-off-by: Alina Buzachis <[email protected]>
c9bea69
to
7725bf7
Compare
Signed-off-by: Alina Buzachis <[email protected]>
1815260
to
6dded5e
Compare
@geerlingguy @gravesm @fabianvf @goneri Can you please review this? Thanks in advance |
Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
@@ -0,0 +1,67 @@ | |||
# Copyright [2017] [Red Hat, Inc.] |
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.
well the file is new, so it should be 2021.
from ansible_collections.kubernetes.core.plugins.module_utils.hashes import generate_hash | ||
|
||
tests = [ | ||
dict( |
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.
Just a note, the Ansible community has a weird addiction with the use of dict()
, but it's better to use the more Pythonic {"a": "b"}
:-).
SUMMARY
Add hash functionality for configmap and secret.
Old PR: ansible-collections/community.kubernetes#404