Skip to content

Commit

Permalink
fix(test): more support custom images
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan committed Aug 30, 2024
1 parent 06be78d commit 628bd7a
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ metadata:
name: test-hbase
spec:
image:
{% if test_scenario['values']['hbase-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hbase-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hbase-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['hbase-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
hdfsConfigMapName: test-hdfs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ metadata:
name: test-hbase
spec:
image:
{% if test_scenario['values']['hbase-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hbase-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hbase-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['hbase-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
hdfsConfigMapName: test-hdfs
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/cluster-operation/20-stop-hbase.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ metadata:
name: test-hbase
spec:
image:
{% if test_scenario['values']['hbase-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hbase-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hbase-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['hbase-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
hdfsConfigMapName: test-hdfs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ metadata:
name: test-hbase
spec:
image:
{% if test_scenario['values']['hbase-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hbase-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hbase-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['hbase-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
hdfsConfigMapName: test-hdfs
zookeeperConfigMapName: test-znode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ metadata:
name: test-hbase
spec:
image:
{% if test_scenario['values']['hbase-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hbase-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hbase-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['hbase-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
hdfsConfigMapName: test-hdfs-namenode-default
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/overrides/30-install-hbase.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ metadata:
name: test-hbase
spec:
image:
{% if test_scenario['values']['hbase-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hbase-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hbase-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['hbase-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
hdfsConfigMapName: test-hdfs-namenode-default
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/resources/30-install-hbase.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ metadata:
name: test-hbase
spec:
image:
{% if test_scenario['values']['hbase-latest'].find(",") > 0 %}
custom: "{{ test_scenario['values']['hbase-latest'].split(',')[1] }}"
productVersion: "{{ test_scenario['values']['hbase-latest'].split(',')[0] }}"
{% else %}
productVersion: "{{ test_scenario['values']['hbase-latest'] }}"
{% endif %}
pullPolicy: IfNotPresent
clusterConfig:
hdfsConfigMapName: test-hdfs-namenode-default
Expand Down

0 comments on commit 628bd7a

Please sign in to comment.