Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Do not mark task as changed when diff is irrelevant #228

Merged

Conversation

fabianvf
Copy link
Collaborator

SUMMARY

When the diff contains changes only to the fields metadata.generation
or metadata.resourceVersion, do not mark the task as changed. Instead,
emit a warning highlighting that the API itself may not be
idempotent, but that there was no meaningful difference between the
desired and actual state of the resource.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/modules/k8s.py

ADDITIONAL INFORMATION

When the diff contains changes only to the fields `metadata.generation`
or `metadata.resourceVersion`, do not mark the task as changed. Instead,
   emit a warning highlighting that the API itself may not be
   idempotent, but that there was no meaningful difference between the
   desired and actual state of the resource.
@codecov
Copy link

codecov bot commented Sep 14, 2020

Codecov Report

Merging #228 into main will decrease coverage by 0.71%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #228      +/-   ##
==========================================
- Coverage   43.38%   42.66%   -0.72%     
==========================================
  Files           4        4              
  Lines         597      607      +10     
  Branches      118      122       +4     
==========================================
  Hits          259      259              
- Misses        291      301      +10     
  Partials       47       47              
Impacted Files Coverage Δ
...ommunity/kubernetes/plugins/module_utils/common.py 38.72% <0.00%> (-1.73%) ⬇️

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 527859c...0afe40e. Read the comment docs.

Copy link
Contributor

@maxamillion maxamillion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@fabianvf fabianvf closed this Sep 15, 2020
@fabianvf fabianvf reopened this Sep 15, 2020
@fabianvf fabianvf merged commit 28dcf76 into ansible-collections:main Sep 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants