You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/12/26 00:44:55 UTC
[airflow] branch master updated: Fix imagePullPolicy missing in
tests (#13316)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 6f246b0 Fix imagePullPolicy missing in tests (#13316)
6f246b0 is described below
commit 6f246b0d54ccaf733b7c5951a8955adda6719acb
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Sat Dec 26 01:44:38 2020 +0100
Fix imagePullPolicy missing in tests (#13316)
The #13289 fixed imagePullPolicy behaviour but broke master K8S
tests. This PR attempts to fix it.
---
kubernetes_tests/test_kubernetes_pod_operator.py | 2 ++
kubernetes_tests/test_kubernetes_pod_operator_backcompat.py | 1 +
2 files changed, 3 insertions(+)
diff --git a/kubernetes_tests/test_kubernetes_pod_operator.py b/kubernetes_tests/test_kubernetes_pod_operator.py
index 9cf146f..49754a2 100644
--- a/kubernetes_tests/test_kubernetes_pod_operator.py
+++ b/kubernetes_tests/test_kubernetes_pod_operator.py
@@ -90,6 +90,7 @@ class TestKubernetesPodOperatorSystem(unittest.TestCase):
'containers': [
{
'image': 'ubuntu:16.04',
+ 'imagePullPolicy': 'IfNotPresent',
'args': ["echo 10"],
'command': ["bash", "-cx"],
'env': [],
@@ -857,6 +858,7 @@ class TestKubernetesPodOperatorSystem(unittest.TestCase):
'env': [],
'envFrom': [],
'image': 'apache/airflow:stress-2020.07.10-1.0.4',
+ 'imagePullPolicy': 'IfNotPresent',
'name': 'base',
'ports': [],
'resources': {'limits': {'memory': '200Mi'}, 'requests': {'memory': '100Mi'}},
diff --git a/kubernetes_tests/test_kubernetes_pod_operator_backcompat.py b/kubernetes_tests/test_kubernetes_pod_operator_backcompat.py
index 1b3fb9d..daefc15 100644
--- a/kubernetes_tests/test_kubernetes_pod_operator_backcompat.py
+++ b/kubernetes_tests/test_kubernetes_pod_operator_backcompat.py
@@ -88,6 +88,7 @@ class TestKubernetesPodOperatorSystem(unittest.TestCase):
'containers': [
{
'image': 'ubuntu:16.04',
+ 'imagePullPolicy': 'IfNotPresent',
'args': ["echo 10"],
'command': ["bash", "-cx"],
'env': [],