Alina Buzachis
d30a349e2f
Add .ansible-lint ( #272 )
...
* Add .ansible-lint
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Update
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Update
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
---------
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
2026-03-26 11:47:54 +00:00
Mike Graves
c2f1d722dc
Update ldap image in tests ( #274 )
...
* Update ldap image in tests
The bitnami openldap image we had been using is no longer being support
by them. It has been moved over to a bitnamilegacy namespace, but it's
not clear how long that will remain. We should find a better solution at
some point.
* Update versions in Dockerfile
The dockerfile was built around python3.9 which forced the use of
ansible 2.15. This updates the base image to ubi10 which uses python3.12
by default. The version of the oc/kubectl client package was updated to
4.20 as well.
* Try and make it work
* Remove backslash
* debug
* try and force 3.12
* use ubi9
* debug
* try adding packaging
* debug
* Lots of changes
* Add check for none
* Fix python version
2026-03-23 14:01:08 +00:00
Mandar Kulkarni
cfd6ee1f9b
Push 5.0.0 changes to main branch ( #270 )
...
* prepare release 5.0.0 (#269 )
* prepare release 5.0.0
* update changelog to include inventory plugin removal
* update changelog to include inventory plugin removal
* update changlogs
* update version to 6.0.0-dev0
* update version current to 5.0.0
2025-06-13 15:23:54 +00:00
Bianca Henderson
d2346e4c8f
Update k8s dependency upper bounds ( #257 )
2025-06-05 16:37:49 +00:00
Mandar Kulkarni
140da75c0f
prepare release 4.0.2 ( #262 ) ( #263 )
...
(cherry picked from commit 55ccaf3394 )
2025-05-29 14:53:51 +00:00
Mike Graves
f54297c2ac
Add ansible-lint to tox linters ( #258 )
...
* Add ansible-lint to tox linters
* Bump black
* Black formatting
* fix linting
2025-05-19 19:53:38 +00:00
GomathiselviS
69bcd79b92
Bump the ansible-lint version to 25.1.2 ( #255 )
...
* Bump the ansible-lint version to 25.1.2
* Update changelogs/fragments/ansible-lint-update.yml
Co-authored-by: Bikouo Aubin <79859644+abikouo@users.noreply.github.com >
---------
Co-authored-by: Bikouo Aubin <79859644+abikouo@users.noreply.github.com >
2025-05-16 16:20:49 +00:00
Mike Graves
93746f2392
Remove openshift inventory plugin ( #252 )
...
* 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.
2025-05-05 15:55:22 +00:00
Mike Graves
a3c3a69bbf
Update tests for newer version of openshift ( #254 )
...
* Update tests for newer version of openshift
More recent versions of ocp no longer automatically create tokens for
service accounts. This updates the tests to manually create the tokens.
* Update nginx template version
The old image was EOL and the deployment was failing to deploy.
* Fix nginx version for all tasks
* Add missing var
2025-05-02 08:30:38 +00:00
Sean Malloy
d1788bed2d
Prepare 4.0.1 release ( #249 )
2024-12-10 15:53:26 +00:00
Birger J. Nordølum
c1683e6dcc
docs: fix indentation for section ( #246 )
2024-11-20 19:07:07 +00:00
Andres Hernandez
0bc2515809
README: Fix version publishing list ( #245 )
...
Fix Markdown list
2024-11-11 15:51:37 +00:00
Andrew Klychkov
a76c07c27a
Add Communication section to README.md ( #244 )
2024-08-19 10:02:08 +00:00
Carter Hale
0a266a6716
Fix Failed Token Delete with PEP8 Indent ( #242 )
...
Co-authored-by: carter <me@halecarter.com >
2024-08-01 15:59:30 +00:00
GomathiselviS
ec8d7e8299
Update Readme to match the template ( #241 )
2024-07-30 15:20:13 +00:00
Mandar Kulkarni
075c143e40
Bump the ansible-lint version to 24.7.0 ( #240 )
...
* add minimum version for ansible-lint to 24.7.0
* added changelog fragment
* added newline at eof
2024-07-23 13:45:05 +00:00
Bikouo Aubin
adfb5ee140
Push 4.0.0 changes to main branch ( #237 )
...
* [stable-4] Fix action group documentation issue for downstream build (#232 ) (#234 )
* Fix action group documentation issue for downstream build (#232 )
(cherry picked from commit 59e78926ec )
* update Makefile
* Release 4.0.0 (#235 )
* Prepare release 4.0.0
* Update kubernetes.core dependency to 5.0.0
* documentation update
2024-06-14 17:03:37 +00:00
Bikouo Aubin
59e78926ec
Fix action group documentation issue for downstream build ( #232 )
2024-06-10 13:16:25 +00:00
Bikouo Aubin
a3704021d3
Revert commit from #228 ( #231 )
2024-06-06 13:28:18 +00:00
Bikouo Aubin
3e37a4cf62
openshift_auth - Fix issue on examples block ( #228 )
...
* openshift_auth: Fix documentation issue
* Update makefile
* update downstream integration tests
2024-06-04 13:46:40 +00:00
Bikouo Aubin
0e884c2341
k8s - Remove support of merge_type=json ( #226 )
2024-05-28 17:13:25 +00:00
Bikouo Aubin
050e236aa6
Defer removal of inventory/openshift to 5.0.0 ( #224 )
...
* Defer removal of inventory/openshift to 5.0.0
* add pull request number
2024-05-28 17:43:38 +02:00
Bikouo Aubin
2c394132aa
connection/oc - add option oc_local_env_vars ( #225 )
...
* add local env vars for connection/oc plugin
* Fix sanity tests
2024-05-28 13:44:03 +00:00
Bharat Babbar
fcc19da20a
Update k8s.py ( #218 )
...
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.
2024-01-18 15:22:39 +00:00
Alina Buzachis
31c2df50ed
Remove useless tests/sanity/ignore-2.*.txt files lower than 2.14 ( #213 )
...
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
2023-12-12 16:29:00 +00:00
Bikouo Aubin
ca8b491f87
Push release 3.0.1 changes into main branch ( #211 )
...
* Prepare release 3.0.0 (#206 )
* Preapare release 3.0.0
* Added release summary
* Drop ansible 2.9 mentions
* Add .gitignore to downstream build files (#208 ) (#209 )
This is required for ansible-lint.
(cherry picked from commit 7988daff93 )
* Release version 3.0.1 (#210 )
* Running tests locally (#207 )
* Running tests locally
* create temporary directory to run tests in
* clean for molecule target
* Update Makefile
Co-authored-by: Mike Graves <mgraves@redhat.com >
---------
Co-authored-by: Mike Graves <mgraves@redhat.com >
---------
Co-authored-by: GomathiselviS <gomathiselvi@gmail.com >
Co-authored-by: Mike Graves <mgraves@redhat.com >
2023-12-11 18:07:16 +00:00
Bikouo Aubin
b5b2f67015
fix integration unsafe asserts ( #212 )
2023-12-11 17:57:20 +01:00
Mike Graves
7988daff93
Add .gitignore to downstream build files ( #208 )
...
This is required for ansible-lint.
2023-11-30 06:11:26 +00:00
Mike Graves
408eae11ae
Relax the python version in downstream build ( #205 )
2023-11-17 16:40:25 +00:00
Mike Graves
5244611fa5
Update owners file ( #197 )
2023-11-15 18:39:37 +00:00
Bikouo Aubin
a63e5b7b36
Update CI - Continue work from #195 ( #202 )
...
* Upgrade Ansible and OKD versions for CI
* Use ubi9 and fix sanity
* Use correct pip install
* Try using quotes
* Ensure python3.9
* Upgrade ansible and molecule versions
* Remove DeploymentConfig
DeploymentConfigs are deprecated and seem to now be causing idempotence
problems. Replacing them with Deployments fixes it.
* Attempt to fix ldap integration tests
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Move sanity and unit tests to GH actions
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Firt round of sanity fixes
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Add kubernetes.core collection as sanity requirement
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Add ignore-2.16.txt
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Attempt to fix units
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Add ignore-2.17
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Attempt to fix unit tests
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Add pytest-ansible to test-requirements.txt
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Add changelog fragment
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Add workflow for ansible-lint
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Apply black
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Fix linters
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Add # fmt: skip
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Yet another round of linting
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Yet another round of linting
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Remove setup.cfg
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Revert #fmt
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Use ansible-core 2.14
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Cleanup ansible-lint ignores
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Try using service instead of pod IP
* Fix typo
* Actually use the correct port
* See if NetworkPolicy is preventing connection
* using Pod internal IP
* fix adm prune auth roles syntax
* adding some retry steps
* fix: openshift_builds target
* add flag --force-with-deps when building downstream collection
* Remove yamllint from tox linters, bump minimum python supported version to 3.9, Remove support for ansible-core < 2.14
---------
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
Co-authored-by: Mike Graves <mgraves@redhat.com >
Co-authored-by: Alina Buzachis <abuzachis@redhat.com >
2023-11-15 17:00:38 +00:00
Gonéri Le Bouder
cb796e1298
remove myself from OWNERS_ALIASES ( #189 )
2023-04-12 09:43:11 -04:00
Alina Buzachis
e9c891c5c2
Deprecate the openshift inventory plugin ( #186 )
...
* Deprecate the openshift inventory plugin
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Fix indentation
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
* Update docs
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
---------
Signed-off-by: Alina Buzachis <abuzachis@redhat.com >
2023-02-07 10:20:58 -05:00
Bikouo Aubin
81339235c7
Release 2.3.0 ( #184 ) ( #185 )
2023-02-03 19:21:03 +01:00
Bikouo Aubin
f94eabffa1
update collection with latest feature from kubernetes.core ( #181 )
...
* Rebase code with kubernetes.core stable-2.4
2023-02-03 07:57:24 +01:00
Mike Graves
499863fa27
Fix example docs for openshift_auth ( #182 )
2023-01-26 10:20:49 -05:00
Mike Graves
5834e32c73
Add missing default values in docstrings ( #180 )
...
* Add missing default values in docstrings
These are needed for milestone (2.15) sanity tests.
* Add changelog fragment
2023-01-24 11:42:15 -05:00
Bikouo Aubin
5aa63e1b07
openshift_auth - fix discard token ( #178 )
...
* openshift_auth: when revoking token, compute the right name of the openshift resource to delete from token name
* conditional check to revoke token
2023-01-12 10:53:42 -05:00
Bikouo Aubin
d7f8aa537a
add pytest-forked in test-requirements.txt ( #179 )
2022-12-01 12:28:01 -05:00
Mike Graves
1691951788
Update for Ansible 2.15 sanity tests ( #173 )
2022-09-22 15:38:20 +02:00
Bikouo Aubin
ed9fb196f9
Openshift Build modules ( #134 )
...
* Openshift Build modules: Start, Prune
* add openshift adm prune builds to ansible-test
* fix sanity for downstream
* sanity ignore
* Remove 2.6 sanity ignores for ansible 2.13 and 2.14
* update code review
* update 2 - code review
2022-08-12 13:56:19 +00:00
Bikouo Aubin
1819975498
Fix sanity tests ( #172 )
...
* Fix sanity tests
2022-08-11 18:14:40 +02:00
Mike Graves
01c257ce76
Fix sanity failures for docs on Ansible 2.13 ( #167 )
2022-05-13 15:59:25 +02:00
Mike Graves
5545c0f9ae
Initialize OpenshiftGroupsSync attributes early ( #165 )
...
* 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
2022-05-12 21:13:59 +00:00
Mike Graves
15fff541b1
Update test dependency ( #162 )
2.2.0
2022-05-06 09:50:33 -04:00
Mike Graves
cfbbbb3be1
Release 2.2.0 ( #161 )
2022-05-06 06:57:01 -04:00
Mike Graves
ab83a185f5
Fix integration tests for k8s 2.3 ( #159 )
...
* Fix integration tests for k8s 2.3
Previous to
https://github.com/ansible-collections/kubernetes.core/pull/408 an
attempt to list resources for which the user was not authorized resulted
in an unhandled exception. The task now does not fail, but instead
reports the error message.
* try to fix sanity
* Fix tests
* fix tests
* fix tests
* Revert change to downstream build
2022-05-05 14:11:35 -04:00
Mike Graves
e69c88ae30
Upgrade python version on prow container to 3.9 ( #156 )
...
* Upgrade python version on prow container to 3.9
* Increase integration time out
* Set build python version
* Fix typo
2022-05-03 15:19:39 -04:00
Mike Graves
3381806d39
Add action groups ( #152 )
...
* Add action groups
* Add changelog fragment
2022-05-02 15:26:52 -04:00
Bikouo Aubin
b2d9e78b8e
add step to prepare downstream collection ( #154 )
...
* add step to prepare downstream collection
* fix header generation
* update downstream_fragments.py
2022-04-29 09:22:46 -04:00