ansible / ansible-kubernetes-modules

DEPRECATED Ansible role containing pre-release K8s modules
Apache License 2.0
73 stars 39 forks source link

Allow for generating kubernetes YAML files from modules #4

Closed flaper87 closed 7 years ago

flaper87 commented 7 years ago

This PR adds the ability to generate kubernetes YAML files from modules.

By adding the request's dictionary to the returned ansible results and the ability to have dry_run executions, we'll allow consumers of this module for registering the result variable and dumping the requests onto a YAML file for later use with other k8s specific CLI tools.

chouseknecht commented 7 years ago

@flaper87

This PR doesn't belong here. It needs to be made against the ansible repo. k8s_common.py is actually part of module_utils, here.

We should probably remove this copy. It was added here to help older version of Ansible that don't include a k8s_common.py.

flaper87 commented 7 years ago

@chouseknecht holy moly, I had no idea! Will move this PR, thanks 👍