From cb1222a91279e7d259ba2fc0486b63b20653ed39 Mon Sep 17 00:00:00 2001 From: Razvan-Daniel Mihai <84674+razvan@users.noreply.github.com> Date: Thu, 14 Dec 2023 14:40:45 +0100 Subject: [PATCH] feat(test): pull policy IfNotPresent Part of https://github.com/stackabletech/issues/issues/481 --- tests/templates/kuttl/cluster-operation/10-install-trino.yaml.j2 | 1 + tests/templates/kuttl/cluster-operation/20-stop-trino.yaml.j2 | 1 + tests/templates/kuttl/cluster-operation/30-pause-trino.yaml.j2 | 1 + tests/templates/kuttl/cluster-operation/40-restart-trino.yaml.j2 | 1 + tests/templates/kuttl/logging/02-install-trino.yaml.j2 | 1 + tests/templates/kuttl/orphaned-resources/1-install-trino.yaml.j2 | 1 + tests/templates/kuttl/resources/10-install-trino.yaml.j2 | 1 + tests/templates/kuttl/smoke/05-install-zookeeper.yaml.j2 | 1 + tests/templates/kuttl/smoke/06-install-hdfs.yaml.j2 | 1 + tests/templates/kuttl/smoke/08-install-hive.yaml.j2 | 1 + tests/templates/kuttl/smoke/09-install-opa.yaml.j2 | 1 + tests/templates/kuttl/smoke/10-install-trino.yaml.j2 | 1 + tests/templates/kuttl/tls/10-install-trino.yaml.j2 | 1 + 13 files changed, 13 insertions(+) diff --git a/tests/templates/kuttl/cluster-operation/10-install-trino.yaml.j2 b/tests/templates/kuttl/cluster-operation/10-install-trino.yaml.j2 index 573fe54a..4ee9b7eb 100644 --- a/tests/templates/kuttl/cluster-operation/10-install-trino.yaml.j2 +++ b/tests/templates/kuttl/cluster-operation/10-install-trino.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino-latest'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: {} {% if lookup('env', 'VECTOR_AGGREGATOR') %} diff --git a/tests/templates/kuttl/cluster-operation/20-stop-trino.yaml.j2 b/tests/templates/kuttl/cluster-operation/20-stop-trino.yaml.j2 index 6e60b1f8..6f4fd56e 100644 --- a/tests/templates/kuttl/cluster-operation/20-stop-trino.yaml.j2 +++ b/tests/templates/kuttl/cluster-operation/20-stop-trino.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino-latest'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: {} {% if lookup('env', 'VECTOR_AGGREGATOR') %} diff --git a/tests/templates/kuttl/cluster-operation/30-pause-trino.yaml.j2 b/tests/templates/kuttl/cluster-operation/30-pause-trino.yaml.j2 index 398c35a7..0e4e090c 100644 --- a/tests/templates/kuttl/cluster-operation/30-pause-trino.yaml.j2 +++ b/tests/templates/kuttl/cluster-operation/30-pause-trino.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino-latest'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: {} {% if lookup('env', 'VECTOR_AGGREGATOR') %} diff --git a/tests/templates/kuttl/cluster-operation/40-restart-trino.yaml.j2 b/tests/templates/kuttl/cluster-operation/40-restart-trino.yaml.j2 index 16d9cfe7..63fbc687 100644 --- a/tests/templates/kuttl/cluster-operation/40-restart-trino.yaml.j2 +++ b/tests/templates/kuttl/cluster-operation/40-restart-trino.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino-latest'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: {} {% if lookup('env', 'VECTOR_AGGREGATOR') %} diff --git a/tests/templates/kuttl/logging/02-install-trino.yaml.j2 b/tests/templates/kuttl/logging/02-install-trino.yaml.j2 index cbc61b44..aa498dad 100644 --- a/tests/templates/kuttl/logging/02-install-trino.yaml.j2 +++ b/tests/templates/kuttl/logging/02-install-trino.yaml.j2 @@ -32,6 +32,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: {} vectorAggregatorConfigMapName: trino-vector-aggregator-discovery diff --git a/tests/templates/kuttl/orphaned-resources/1-install-trino.yaml.j2 b/tests/templates/kuttl/orphaned-resources/1-install-trino.yaml.j2 index 4c6b9706..2580d5c5 100644 --- a/tests/templates/kuttl/orphaned-resources/1-install-trino.yaml.j2 +++ b/tests/templates/kuttl/orphaned-resources/1-install-trino.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino-latest'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: {} {% if lookup('env', 'VECTOR_AGGREGATOR') %} diff --git a/tests/templates/kuttl/resources/10-install-trino.yaml.j2 b/tests/templates/kuttl/resources/10-install-trino.yaml.j2 index 3fb06e0e..2092b1af 100644 --- a/tests/templates/kuttl/resources/10-install-trino.yaml.j2 +++ b/tests/templates/kuttl/resources/10-install-trino.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino-latest'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: {} {% if lookup('env', 'VECTOR_AGGREGATOR') %} diff --git a/tests/templates/kuttl/smoke/05-install-zookeeper.yaml.j2 b/tests/templates/kuttl/smoke/05-install-zookeeper.yaml.j2 index d159dc8f..8150d895 100644 --- a/tests/templates/kuttl/smoke/05-install-zookeeper.yaml.j2 +++ b/tests/templates/kuttl/smoke/05-install-zookeeper.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['zookeeper'] }}" + pullPolicy: IfNotPresent {% if lookup('env', 'VECTOR_AGGREGATOR') %} clusterConfig: vectorAggregatorConfigMapName: vector-aggregator-discovery diff --git a/tests/templates/kuttl/smoke/06-install-hdfs.yaml.j2 b/tests/templates/kuttl/smoke/06-install-hdfs.yaml.j2 index 39e254e5..c39eff32 100644 --- a/tests/templates/kuttl/smoke/06-install-hdfs.yaml.j2 +++ b/tests/templates/kuttl/smoke/06-install-hdfs.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['hdfs'] }}" + pullPolicy: IfNotPresent clusterConfig: dfsReplication: 1 {% if lookup('env', 'VECTOR_AGGREGATOR') %} diff --git a/tests/templates/kuttl/smoke/08-install-hive.yaml.j2 b/tests/templates/kuttl/smoke/08-install-hive.yaml.j2 index 0c094cd5..bd68dbf9 100644 --- a/tests/templates/kuttl/smoke/08-install-hive.yaml.j2 +++ b/tests/templates/kuttl/smoke/08-install-hive.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['hive'] }}" + pullPolicy: IfNotPresent clusterConfig: database: connString: jdbc:postgresql://postgresql:5432/hive diff --git a/tests/templates/kuttl/smoke/09-install-opa.yaml.j2 b/tests/templates/kuttl/smoke/09-install-opa.yaml.j2 index afc333c0..fbe32809 100644 --- a/tests/templates/kuttl/smoke/09-install-opa.yaml.j2 +++ b/tests/templates/kuttl/smoke/09-install-opa.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['opa'] }}" + pullPolicy: IfNotPresent {% if lookup('env', 'VECTOR_AGGREGATOR') %} clusterConfig: vectorAggregatorConfigMapName: vector-aggregator-discovery diff --git a/tests/templates/kuttl/smoke/10-install-trino.yaml.j2 b/tests/templates/kuttl/smoke/10-install-trino.yaml.j2 index 51644279..dbdd4710 100644 --- a/tests/templates/kuttl/smoke/10-install-trino.yaml.j2 +++ b/tests/templates/kuttl/smoke/10-install-trino.yaml.j2 @@ -6,6 +6,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: matchLabels: diff --git a/tests/templates/kuttl/tls/10-install-trino.yaml.j2 b/tests/templates/kuttl/tls/10-install-trino.yaml.j2 index 19626d81..b17c7775 100644 --- a/tests/templates/kuttl/tls/10-install-trino.yaml.j2 +++ b/tests/templates/kuttl/tls/10-install-trino.yaml.j2 @@ -56,6 +56,7 @@ metadata: spec: image: productVersion: "{{ test_scenario['values']['trino-latest'] }}" + pullPolicy: IfNotPresent clusterConfig: catalogLabelSelector: {} {% if lookup('env', 'VECTOR_AGGREGATOR') %}