Skip to content

Commit df87e6c

Browse files
author
Rein van 't Veer
authored
upgrade Python to v 3.8 (#4413)
* upgrade Python to v 3.8 * add change notes * add python to installation guide Signed-off-by: reinvantveer <[email protected]>
1 parent c58a281 commit df87e6c

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
entries:
2+
- description: >
3+
For Ansible-based operators, the Python version has been updated
4+
to a newer version, from 3.6 to 3.8 to take advantage of performance
5+
improvements, language additions, security updates and generally
6+
better availability for local development.
7+
8+
kind: change
9+
10+
# Is this a breaking change?
11+
breaking: false

images/ansible-operator/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV HOME=/opt/ansible \
1515
# yum clean all && rm -rf /var/yum/cache/* first
1616
RUN yum clean all && rm -rf /var/cache/yum/* \
1717
&& yum -y update \
18-
&& yum install -y libffi-devel openssl-devel python36-devel gcc python3-pip python3-setuptools \
18+
&& yum install -y libffi-devel openssl-devel python38-devel gcc python38-pip python38-setuptools \
1919
&& pip3 install --no-cache-dir \
2020
ansible-runner==1.3.4 \
2121
ansible-runner-http==1.0.0 \
@@ -24,7 +24,7 @@ RUN yum clean all && rm -rf /var/cache/yum/* \
2424
openshift==0.10.3 \
2525
ansible==2.9.15 \
2626
jmespath==0.10.0 \
27-
&& yum remove -y gcc libffi-devel openssl-devel python36-devel \
27+
&& yum remove -y gcc libffi-devel openssl-devel python38-devel \
2828
&& yum clean all \
2929
&& rm -rf /var/cache/yum
3030

website/content/en/docs/building-operators/ansible/installation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ weight: 1
99
Follow the steps in the [installation guide][install-guide] to learn how to install the `operator-sdk` CLI tool.
1010

1111
## Additional Prerequisites
12-
12+
- [python][python] version 3.8.6+
1313
- [ansible][ansible] version v2.9.0+
1414
- [ansible-runner][ansible-runner] version v1.1.0+
1515
- [ansible-runner-http][ansible-runner-http-plugin] version v1.0.0+
1616
- [openshift][openshift-module] version v0.11.2+
1717

1818

1919
[install-guide]:/docs/installation/
20+
[python]:https://www.python.org/downloads/
2021
[ansible]:https://docs.ansible.com/ansible/latest/index.html
2122
[ansible-runner]:https://ansible-runner.readthedocs.io/en/latest/install.html
2223
[ansible-runner-http-plugin]:https://github.com/ansible/ansible-runner-http

0 commit comments

Comments
 (0)