From 861f524d4731cd2d6bdbead0f071530fb07fe72b Mon Sep 17 00:00:00 2001 From: oceanc80 Date: Fri, 30 Jun 2023 09:27:54 -0400 Subject: [PATCH] Update docs to remove deprecated references (#6478) Signed-off-by: Catherine Chan-Tse --- .../en/docs/building-operators/ansible/development-tips.md | 7 +++---- .../en/docs/building-operators/ansible/testing-guide.md | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/website/content/en/docs/building-operators/ansible/development-tips.md b/website/content/en/docs/building-operators/ansible/development-tips.md index 58187444f4..3fda8c9446 100644 --- a/website/content/en/docs/building-operators/ansible/development-tips.md +++ b/website/content/en/docs/building-operators/ansible/development-tips.md @@ -31,10 +31,10 @@ sudo dnf install ansible ``` In addition to Ansible, a user must install the -[OpenShift Restclient Python][openshift-restclient-python] package: +[Python Kubernetes Client][python-kubernetes-client] package: ```sh -pip3 install openshift +pip3 install kubernetes ``` Finally, install the Kubernetes Collection from ansible-galaxy: @@ -509,13 +509,12 @@ operator. The `ansible_operator_meta` fields can be accessed via dot notation in [ansible-runner-http-plugin]:https://github.com/ansible/ansible-runner-http [ansible-runner-tool]: https://ansible-runner.readthedocs.io/en/latest/install.html [k8s_ansible_module]:https://docs.ansible.com/ansible/2.6/modules/k8s_module.html -[openshift_restclient_python]:https://github.com/openshift/openshift-restclient-python [tutorial]:../tutorial [kubernetes_collection]: https://galaxy.ansible.com/kubernetes/core [manage_status_proposal]:../../proposals/ansible-operator-status.md -[openshift-restclient-python]: https://github.com/openshift/openshift-restclient-python [operator_sdk_util]: https://galaxy.ansible.com/operator_sdk/util [passing_extra_vars]: https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#passing-variables-on-the-command-line +[python-kubernetes-client]: https://github.com/kubernetes-client/python [time_pkg]:https://golang.org/pkg/time/ [time_parse_duration]:https://golang.org/pkg/time/#ParseDuration [watches]:/docs/building-operators/ansible/reference/watches diff --git a/website/content/en/docs/building-operators/ansible/testing-guide.md b/website/content/en/docs/building-operators/ansible/testing-guide.md index ef2fcddd82..1c66558b24 100644 --- a/website/content/en/docs/building-operators/ansible/testing-guide.md +++ b/website/content/en/docs/building-operators/ansible/testing-guide.md @@ -13,7 +13,7 @@ To begin, you should have: - Docker installed and running - [Molecule](https://github.com/ansible/molecule) >= v3.0 - [Ansible](https://github.com/ansible/ansible) >= v2.9 -- [The OpenShift Python client](https://github.com/openshift/openshift-restclient-python) >= v0.8 +- [The Python Kubernetes client](https://github.com/kubernetes-client/python) - An initialized Ansible Operator project, with the molecule directory present. **NOTE** If you initialized a project with a previous version of operator-sdk, you can generate a new dummy project and copy in the `molecule` directory. Just be sure to generate the dummy project with the same `api-version` and `kind`, or some of the generated files will not work without modification. Your top-level project structure should look like this: