Skip to content

Commit

Permalink
upgrade Python to v 3.8 (operator-framework#4413)
Browse files Browse the repository at this point in the history
* upgrade Python to v 3.8
* add change notes
* add python to installation guide

Signed-off-by: reinvantveer <reinvantveer@gmail.com>
Signed-off-by: Rein van 't Veer <reinvantveer@gmail.com>
  • Loading branch information
Rein van 't Veer authored and reinvantveer committed Feb 4, 2021
1 parent 1971c65 commit 2061cc3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions changelog/fragments/upgrade-python-on-ansible-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
entries:
- description: >
For Ansible-based operators, the Python version has been updated
to a newer version, from 3.6 to 3.8 to take advantage of performance
improvements, language additions, security updates and generally
better availability for local development.
kind: change
# Is this a breaking change?
breaking: false
4 changes: 2 additions & 2 deletions images/ansible-operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ENV HOME=/opt/ansible \
# yum clean all && rm -rf /var/yum/cache/* first
RUN yum clean all && rm -rf /var/cache/yum/* \
&& yum -y update \
&& yum install -y libffi-devel openssl-devel python36-devel gcc python3-pip python3-setuptools \
&& yum install -y libffi-devel openssl-devel python38-devel gcc python38-pip python38-setuptools \
&& pip3 install --no-cache-dir \
ansible-runner==1.3.4 \
ansible-runner-http==1.0.0 \
Expand All @@ -24,7 +24,7 @@ RUN yum clean all && rm -rf /var/cache/yum/* \
openshift==0.10.3 \
ansible==2.9.15 \
jmespath==0.10.0 \
&& yum remove -y gcc libffi-devel openssl-devel python36-devel \
&& yum remove -y gcc libffi-devel openssl-devel python38-devel \
&& yum clean all \
&& rm -rf /var/cache/yum

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ weight: 1
Follow the steps in the [installation guide][install-guide] to learn how to install the `operator-sdk` CLI tool.

## Additional Prerequisites

- [python][python] version 3.8.6+
- [ansible][ansible] version v2.9.0+
- [ansible-runner][ansible-runner] version v1.1.0+
- [ansible-runner-http][ansible-runner-http-plugin] version v1.0.0+
- [openshift][openshift-module] version v0.11.2+


[install-guide]:/docs/installation/
[python]:https://www.python.org/downloads/
[ansible]:https://docs.ansible.com/ansible/latest/index.html
[ansible-runner]:https://ansible-runner.readthedocs.io/en/latest/install.html
[ansible-runner-http-plugin]:https://github.com/ansible/ansible-runner-http
Expand Down

0 comments on commit 2061cc3

Please sign in to comment.