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
Backport fixes for k8s module 2.6 #42525
Conversation
The test
|
rebuild_merge |
@maxamillion don't think the build failure is related, or if it is not sure what would cause it. Looks like it failed to find the openshift python client. |
rekicking CI, network timeouts seem to be failing unrelated tests |
bot_status |
Componentslib/ansible/module_utils/k8s/common.py lib/ansible/module_utils/k8s/raw.py lib/ansible/modules/clustering/k8s/k8s.py lib/ansible/utils/module_docs_fragments/k8s_resource_options.py test/integration/targets/k8s/tasks/main.yml Metadatawaiting_on: ansible |
1f11da7
to
394d6c8
Compare
I suppose they are features. I was really hoping #40730 could make it back, because many existing kubernetes files are multidocument yaml, which can't be read by the from_yaml. This means a large portion of existing kubernetes projects can't be easily automated in Ansible 2.6. #42377 is a follow-up that enabled lists as well, as a stop-gap for proper support of *List kinds in the Python client. These two PRs together fix a lot of behavior that makes the modules look broken from a user perspective, without them they may have to make significant changes to their templates to make their existing kubernetes definitions work in Ansible. |
For #40730 we could just document the workaround for multi-document yaml
|
@mattclay should I take those two out and bring them up at the next community meeting to discuss backporting them? |
394d6c8
to
1f7e508
Compare
@mattclay removed the offending commits. |
Failures seem unrelated, can we rekick? |
ping @mattclay |
SUMMARY
Backport:
update k8s module arguments to allow resource_definition to be a string #40730[k8s] allow user to pass list of resources in to definition parameter #42377ISSUE TYPE
COMPONENT NAME
k8s