-
Notifications
You must be signed in to change notification settings - Fork 105
Fix failing CI tests by updating args in k8s_service #34
Conversation
@mmazur / @fabianvf - I added the relevant arg specs and docs to silence the warnings emitted by the sanity check... but I'm wondering—does the k8s_service module actually accept these parameters the same as the k8s module? The common |
ca47ea5
to
b32e260
Compare
Codecov Report
@@ Coverage Diff @@
## master #34 +/- ##
=======================================
Coverage 43.28% 43.28%
=======================================
Files 3 3
Lines 536 536
Branches 109 109
=======================================
Hits 232 232
Misses 261 261
Partials 43 43
Continue to review full report at Codecov.
|
I don't really understand why |
@willthames - See https://github.com/ansible-collections/kubernetes/blob/7b5c599f6d6df6c792c87c7bb8544abc024baee0/plugins/module_utils/raw.py#L101-L104 — |
Ah right, yes, that does indeed make more sense. In answer to your earlier question, while I'd say that k8s_service shouldn't need apply, I added apply functionality mainly because I got hit so hard with updating services with the k8s module - I don't know if k8s_service handles that better - there are no tests for k8s_service (which means it probably shouldn't have been accepted) I don't know if it accepts src either - I thought it was a higher level abstraction than that |
@willthames - Original PR with some discussion for background: ansible/ansible#48872 — it seems that the module was mostly added as a convenience, but I agree, I'd never used it (nor noticed it was in Ansible) until I was moving it into this collection. I normally use the |
I'm going to go ahead and merge this, mostly to get tests back to green. If it turns out the k8s_service module needs further refinement to actually support the parameter structure it inherits... then we can open up follow-up bug reports and/or consider what to do with it later. |
@geerlingguy it probably should not accept all those |
Closes #33.