From 3f5cb645f2dbaf65d93ed8e39b6a8446e0203505 Mon Sep 17 00:00:00 2001 From: darren Date: Fri, 12 Feb 2021 16:24:18 +0000 Subject: [PATCH] fix 9298 by upgrading pip allowing use of custom_venvs --- installer/roles/kubernetes/templates/deployment.yml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installer/roles/kubernetes/templates/deployment.yml.j2 b/installer/roles/kubernetes/templates/deployment.yml.j2 index 5902d8d3ae..de31ee68e9 100644 --- a/installer/roles/kubernetes/templates/deployment.yml.j2 +++ b/installer/roles/kubernetes/templates/deployment.yml.j2 @@ -150,6 +150,8 @@ spec: virtualenv -p {{ custom_venv.python | default(custom_venvs_python) }} \ {{ custom_venvs_path }}/{{ custom_venv.name }} && source {{ custom_venvs_path }}/{{ custom_venv.name }}/bin/activate && + {{ custom_venvs_path }}/{{ custom_venv.name }}/bin/pip install {{ trusted_hosts }} -U psutil \ + --upgrade pip && {{ custom_venvs_path }}/{{ custom_venv.name }}/bin/pip install {{ trusted_hosts }} -U psutil \ "ansible=={{ custom_venv.python_ansible_version }}" && {% if custom_venv.python_modules is defined %}