* Remove openshift inventory plugin
This removes the openshift inventory plugin which has been deprecated
since version 3.0.0. The tests have been updated to retain coverage of
the connection plugin, which is still supported.
* Update version in Makefile
* CI fixes
* Update version info in build scripts
* Set ansible remote directory
The security policy on the pod is preventing ansible from writing to /.
Set it to /tmp which should be writable.
docs.ansible.com is managed by Red Hat and I found that the example to create the OCP/OKD project was missing in this hence I have added the below snippet:
- name: Create an OCP project
community.okd.k8s:
state: present
resource_definition:
apiVersion: project.openshift.io/v1
kind: Project
metadata:
name: testing
Please add this to the man pages also.
* Initialize OpenshiftGroupsSync attributes early
The fail_json() method calls close_connection(), but this can fail when
the python-ldap library is not installed as close_connection() gets
called before the __ldap_connection attribute has been defined.
* Use already defined virtualenv_command
* Fix tests
* Add changelog fragment
* fix ocp auth adding / to oauth discovery url
* fix space after comma
* add changelog fragment
* Convert line endings
Co-authored-by: Mike Graves <mgraves@redhat.com>
- delay the loading of external modules when possible
- delay the loading of OKDRawModule and OpenShiftProcess classes
- k8s reuse the design of the kubernetes.core modules
We've got a chicken/egg problem that prevent us from properly
reporting if kubernetes.core is missing. We need args_common to create
the module object. And we need the module object to report the missing
dependency. The dependency is declared in the galaxy.yml file anyway,
the problem should not happen.
Follow up to the recent upgrade of pylint in the devel branch, we've
got a new use-a-generator error in k8s.py:
Use a generator instead 'all(desired.get(key, True) == item.get(key, False) for key in keys)'
This commit disables the error until we've got time to rewrite this
part.
Also, since the older branches still use an ancient version of pylint,
we've got another message saying the error does not exist (yet!).
This commit also adds the right entries in the ignore files.
* Enable turbo mode
This enables turbo mode (default is off) for the modules in this
collection that use the client from the kubernetes.core collection.
* Add changelog fragment
* Update to work with k8s 2.0
This makes the necessary changes to get the collection working with
kubernetes.core 2.0. The biggest changes here will be switching from the
openshift client to the kubernetes client, and dropping Python 2
support.
* Install kubernetes not openshift
* Add changelog fragment
* Fix sanity failure
This fixes a sanity test failure for newer versions of ansible-test. It
was falsely flagging the key parameter for TLS configuration as
sensitive. This parameter is just the path to a key file.
* Restrict molecule version
This is needed to address a breaking change in molecule 3.3.0.
* Add changelog fragment
* Fix doc string
The sanity tests fail due to missing default values on a few options in
the doc string. This change puts the doc string in alignment with the
argument spec.
* Fix case
* doc fragments workaround for downstream
Signed-off-by: Adam Miller <admiller@redhat.com>
* make shellcheck happy
Signed-off-by: Adam Miller <admiller@redhat.com>
* fix collection location for downstream doc fragment resolution
Signed-off-by: Adam Miller <admiller@redhat.com>
* do things in the correct order
Signed-off-by: Adam Miller <admiller@redhat.com>
* add ANSIBLE_COLLECTIONS_PATH to ansible-doc for downstream
Signed-off-by: Adam Miller <admiller@redhat.com>
* remove elements of the json dump that aren't valid for DOCUMENTATION
Signed-off-by: Adam Miller <admiller@redhat.com>
* Add fix for Ansible 2.9
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Update ci/downstream.sh
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Jeff Geerling <geerlingguy@mac.com>
* Initial pass at openshift_process module. Render-only
* fix sanity test
* Add ability to create/delete resources rendered by template
* fix sanity tests
* add more tests and fix .env parser
* Add more tests
* Make multiline parsing work properly
* Add test for creating templates
* Template APIs require namespace to be provided whether or not the template exists
* add docs
* Update plugins/modules/openshift_process.py
Co-authored-by: Timothy Appnel <tima@ansible.com>
Co-authored-by: Timothy Appnel <tima@ansible.com>
* first draft of interface
* Add basic implementation
* Add validation
* rename to openshift_route and add some test tasks
* Fix sanity checks
* Add checks for missing dependencies
* Add port processing like the oc command
* Add real tests
* Fix waiting
* add some more waiting to test
* add state parameters and fix RETURN docs
* try to fix odd sanity issue
* import tests passing
* Fix all sanity tests
* Do less work when state is absent, and add explicit removal values
* insecure_policy disable -> disallow
* add proper default for insecure_policy
* Add openshift_auth module
* add task to print out config
* Attempt to configure auth
* Update molecule/default/tasks/openshift_auth.yml
* fix sanity test and use incluster address for now
* Get integration tests passing locally
* Give test user cluster-level admin permissions
* Use a less verbose resource for testing
* Add alias to k8s_auth for backwards compatibility
* If deploymentconfigs are configured to trigger on image stream updates don't try to replace image field
* First pass at parsing the trigger annotation
* First draft of IS idempotence tests
* Found even more not idempotent stuff
* Separate handling of annotation and dc spec
* handle malformed annotations
* refactor incluster integration test to catch last flake
* Add proper DNS01 regex for container names
* fix broken conditional for trigger annotations
* Handle namespace field that is added to trigger
* deduplicate shared code
* Set namespace in incluster script
* Give high permissions to test pod
* Still working on permissions issues in prow
* Fix inventory test
* add namespace to watch
* run in default namespace
* fix recursive call
* Fix ansible collection path for downstream test
* Clone the proper ansible collection
* Initial port to molecule
* Get molecule tests to run
* Draw the rest of the owl
* use local dir for storing collection during CI run
* Add dockerfile, install community.kubernetes collection before sanity check
* Add clean step to Makefile
* Get sanity tests working
* Update sanity test to use makefile
* Add ignores for 2.11 so devel passes
* Update description
* Code review
* Add OWNERS file for prow
* Issue #1: Initial effort to lift some content out of the Kubernetes collection.
* Issue #1: Disable integration tests for now, as they're not relevant.