-
Notifications
You must be signed in to change notification settings - Fork 158
Omit DeleteOptions in check mode
#898
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
Conversation
auto release on issue creation
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 24s |
abikouo
left a comment
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.
You need to add a changelog with something like
---
bugfixes:
- module_utils/k8s/service - fix issue when trying to delete resource using `delete_options` and `check_mode=true` (https://github.com/ansible-collections/kubernetes.core/issues/892).It would be nice if you can also update the k8s_delete integration tests target to validate the fix
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 11s |
|
Added the changelog fragment and will look at adding an integration test next. |
|
Hint to self: |
|
Notes from setting up the environment to run the integration tests:
|
|
@abikouo I added an integration test. Can you please let me know if any further changes are needed? |
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 19s |
|
@abikouo This PR is ready for review now. There are some failing tests, but I think that's unrelated to this PR (at least I have no idea what I could do about this): |
It's an issue with the test for the current devel and milestone branches of ansible. Here is issue #904 and a prepared fix #903 |
|
Hi @efussi Would you please rebase your PR or merge main into? It should resolve a issue with failing test |
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 20s |
SUMMARY
Don't set
DeleteOptionsink8swhen running in check mode.Fixes #892
ISSUE TYPE
COMPONENT NAME
k8sADDITIONAL INFORMATION
See ACTUAL and EXPECTED RESULTS in #892 (comment) for command output before and after the change.