Skip to content
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

Merged

Conversation

alinabuzachis
Copy link
Contributor

SUMMARY

Add hash functionality for configmap and secret.

Old PR: ansible-collections/community.kubernetes#404

@alinabuzachis alinabuzachis force-pushed the add_configmap_secret_hash branch from 11c6cbf to c9bea69 Compare April 8, 2021 16:12
@codecov
Copy link

codecov bot commented Apr 8, 2021

Codecov Report

Merging #48 (c6f5474) into main (ba586a8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba586a8...c6f5474. Read the comment docs.

Signed-off-by: Alina Buzachis <[email protected]>
@alinabuzachis alinabuzachis force-pushed the add_configmap_secret_hash branch from c9bea69 to 7725bf7 Compare April 8, 2021 16:20
Signed-off-by: Alina Buzachis <[email protected]>
@alinabuzachis alinabuzachis force-pushed the add_configmap_secret_hash branch from 1815260 to 6dded5e Compare April 9, 2021 09:21
@Akasurde
Copy link
Member

Akasurde commented Apr 9, 2021

@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.]
Copy link
Member

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(
Copy link
Member

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"} :-).

@gravesm gravesm merged commit edc48ee into ansible-collections:main Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants