aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/ims/helm
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-03-24 08:23:03 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2021-03-25 09:59:34 +0100
commit9c95b5f46e57365c1f6e7e5c9073f7fe2ad48a66 (patch)
treebbf1191c54b571e95086ebe0d793bc72544b99ff /functest_kubernetes/ims/helm
parentaf623f6b45c9357b0e33210f54db64b270d162bf (diff)
Provide support for air gapped env for ims
Sometimes, tested Kubernetes doesn't have direct access to Internet but access through repository mirrors. This patch handles this case for ims test cases. Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I3b5e78fcf43ca7af6bcfd2d87fa4bb0705373697
Diffstat (limited to 'functest_kubernetes/ims/helm')
-rw-r--r--functest_kubernetes/ims/helm/templates/astaire-depl.yaml6
-rw-r--r--functest_kubernetes/ims/helm/templates/bono-depl.yaml6
-rw-r--r--functest_kubernetes/ims/helm/templates/cassandra-depl.yaml4
-rw-r--r--functest_kubernetes/ims/helm/templates/chronos-depl.yaml6
-rw-r--r--functest_kubernetes/ims/helm/templates/ellis-depl.yaml6
-rw-r--r--functest_kubernetes/ims/helm/templates/etcd-depl.yaml2
-rw-r--r--functest_kubernetes/ims/helm/templates/homer-depl.yaml4
-rw-r--r--functest_kubernetes/ims/helm/templates/homestead-depl.yaml8
-rw-r--r--functest_kubernetes/ims/helm/templates/homestead-prov-depl.yaml4
-rw-r--r--functest_kubernetes/ims/helm/templates/ralf-depl.yaml6
-rw-r--r--functest_kubernetes/ims/helm/templates/sprout-depl.yaml10
-rw-r--r--functest_kubernetes/ims/helm/values.yaml3
12 files changed, 34 insertions, 31 deletions
diff --git a/functest_kubernetes/ims/helm/templates/astaire-depl.yaml b/functest_kubernetes/ims/helm/templates/astaire-depl.yaml
index 11fcb1d6..13bf0001 100644
--- a/functest_kubernetes/ims/helm/templates/astaire-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/astaire-depl.yaml
@@ -15,10 +15,10 @@ spec:
terminationGracePeriodSeconds: 120
initContainers:
- name: wait-on-cassandra
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup cassandra; do echo waiting for cassandra to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-astaire:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-astaire:{{ .Values.image.tag }}"
name: astaire
ports:
- containerPort: 22
@@ -47,7 +47,7 @@ spec:
preStop:
exec:
command: ["/bin/bash", "-c", "/usr/bin/pre-stop"]
- - image: busybox:1.28
+ - image: {{ .Values.repo.dockerHub }}/busybox:1.28
name: tailer
command: [ "tail", "-F", "/var/log/astaire/astaire_current.txt" ]
volumeMounts:
diff --git a/functest_kubernetes/ims/helm/templates/bono-depl.yaml b/functest_kubernetes/ims/helm/templates/bono-depl.yaml
index d3fb1b82..2ab749b4 100644
--- a/functest_kubernetes/ims/helm/templates/bono-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/bono-depl.yaml
@@ -15,10 +15,10 @@ spec:
spec:
initContainers:
- name: wait-on-sprout
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-bono:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-bono:{{ .Values.image.tag }}"
name: bono
ports:
- containerPort: 22
@@ -54,7 +54,7 @@ spec:
volumeMounts:
- name: bonologs
mountPath: /var/log/bono
- - image: busybox:1.28
+ - image: {{ .Values.repo.dockerHub }}/busybox:1.28
name: tailer
command: [ "tail", "-F", "/var/log/bono/bono_current.txt" ]
volumeMounts:
diff --git a/functest_kubernetes/ims/helm/templates/cassandra-depl.yaml b/functest_kubernetes/ims/helm/templates/cassandra-depl.yaml
index fb04a78f..d1850f52 100644
--- a/functest_kubernetes/ims/helm/templates/cassandra-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/cassandra-depl.yaml
@@ -14,10 +14,10 @@ spec:
spec:
initContainers:
- name: wait-on-etcd
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup etcd; do echo waiting for etcd to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-cassandra:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-cassandra:{{ .Values.image.tag }}"
name: cassandra
ports:
- containerPort: 22
diff --git a/functest_kubernetes/ims/helm/templates/chronos-depl.yaml b/functest_kubernetes/ims/helm/templates/chronos-depl.yaml
index 641ba479..6188754e 100644
--- a/functest_kubernetes/ims/helm/templates/chronos-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/chronos-depl.yaml
@@ -17,10 +17,10 @@ spec:
terminationGracePeriodSeconds: 120
initContainers:
- name: wait-on-cassandra
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup cassandra; do echo waiting for cassandra to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-chronos:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-chronos:{{ .Values.image.tag }}"
name: chronos
ports:
- containerPort: 22
@@ -48,7 +48,7 @@ spec:
preStop:
exec:
command: ["/bin/bash", "-c", "/usr/bin/pre-stop"]
- - image: busybox:1.28
+ - image: {{ .Values.repo.dockerHub }}/busybox:1.28
name: tailer
command: [ "tail", "-F", "/var/log/chronos/chronos_current.txt" ]
volumeMounts:
diff --git a/functest_kubernetes/ims/helm/templates/ellis-depl.yaml b/functest_kubernetes/ims/helm/templates/ellis-depl.yaml
index 0a290139..c8dd9232 100644
--- a/functest_kubernetes/ims/helm/templates/ellis-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/ellis-depl.yaml
@@ -14,13 +14,13 @@ spec:
spec:
initContainers:
- name: wait-on-homestead-prov
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup homestead-prov; do echo waiting for homestead-prov to start ...; sleep 2; done']
- name: wait-on-sprout
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-ellis:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-ellis:{{ .Values.image.tag }}"
name: ellis
ports:
- containerPort: 22
diff --git a/functest_kubernetes/ims/helm/templates/etcd-depl.yaml b/functest_kubernetes/ims/helm/templates/etcd-depl.yaml
index c9e628ff..33fc2e81 100644
--- a/functest_kubernetes/ims/helm/templates/etcd-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/etcd-depl.yaml
@@ -45,7 +45,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- image: quay.io/coreos/etcd:v2.2.5
+ image: {{ .Values.repo.quay }}//coreos/etcd:v2.2.5
name: etcd
ports:
- containerPort: 2379
diff --git a/functest_kubernetes/ims/helm/templates/homer-depl.yaml b/functest_kubernetes/ims/helm/templates/homer-depl.yaml
index 01bf9cdc..073124f1 100644
--- a/functest_kubernetes/ims/helm/templates/homer-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/homer-depl.yaml
@@ -14,10 +14,10 @@ spec:
spec:
initContainers:
- name: wait-on-cassandra
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup cassandra; do echo waiting for cassandra to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-homer:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-homer:{{ .Values.image.tag }}"
name: homer
ports:
- containerPort: 22
diff --git a/functest_kubernetes/ims/helm/templates/homestead-depl.yaml b/functest_kubernetes/ims/helm/templates/homestead-depl.yaml
index 782ff16d..4e7f86a6 100644
--- a/functest_kubernetes/ims/helm/templates/homestead-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/homestead-depl.yaml
@@ -15,13 +15,13 @@ spec:
spec:
initContainers:
- name: wait-on-cassandra
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup cassandra; do echo waiting for cassandra to start ...; sleep 2; done']
- name: wait-on-astaire
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup astaire; do echo waiting for astaire to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-homestead:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-homestead:{{ .Values.image.tag }}"
name: homestead
ports:
- containerPort: 22
@@ -44,7 +44,7 @@ spec:
volumeMounts:
- name: homesteadlogs
mountPath: /var/log/homestead
- - image: busybox:1.28
+ - image: {{ .Values.repo.dockerHub }}/busybox:1.28
name: tailer
command: [ "tail", "-F", "/var/log/homestead/homestead_current.txt" ]
volumeMounts:
diff --git a/functest_kubernetes/ims/helm/templates/homestead-prov-depl.yaml b/functest_kubernetes/ims/helm/templates/homestead-prov-depl.yaml
index 59ec4e26..49e3e4b3 100644
--- a/functest_kubernetes/ims/helm/templates/homestead-prov-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/homestead-prov-depl.yaml
@@ -15,10 +15,10 @@ spec:
spec:
initContainers:
- name: wait-on-homestead
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup homestead; do echo waiting for homestead to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-homestead-prov:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-homestead-prov:{{ .Values.image.tag }}"
name: homestead-prov
ports:
- containerPort: 22
diff --git a/functest_kubernetes/ims/helm/templates/ralf-depl.yaml b/functest_kubernetes/ims/helm/templates/ralf-depl.yaml
index b052eea6..e115ee25 100644
--- a/functest_kubernetes/ims/helm/templates/ralf-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/ralf-depl.yaml
@@ -15,10 +15,10 @@ spec:
spec:
initContainers:
- name: wait-on-cassandra
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup cassandra; do echo waiting for cassandra to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-ralf:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-ralf:{{ .Values.image.tag }}"
name: ralf
ports:
- containerPort: 22
@@ -41,7 +41,7 @@ spec:
volumeMounts:
- name: ralflogs
mountPath: /var/log/ralf
- - image: busybox:1.28
+ - image: {{ .Values.repo.dockerHub }}/busybox:1.28
name: tailer
command: [ "tail", "-F", "/var/log/ralf/ralf_current.txt" ]
volumeMounts:
diff --git a/functest_kubernetes/ims/helm/templates/sprout-depl.yaml b/functest_kubernetes/ims/helm/templates/sprout-depl.yaml
index 1ee4701f..dd7ef49e 100644
--- a/functest_kubernetes/ims/helm/templates/sprout-depl.yaml
+++ b/functest_kubernetes/ims/helm/templates/sprout-depl.yaml
@@ -15,16 +15,16 @@ spec:
spec:
initContainers:
- name: wait-on-ralf
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup ralf; do echo waiting for ralf to start ...; sleep 2; done']
- name: wait-on-chronos
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup chronos; do echo waiting for chronos to start ...; sleep 2; done']
- name: wait-on-homestead
- image: busybox:1.28
+ image: {{ .Values.repo.dockerHub }}/busybox:1.28
command: ['sh', '-c', 'until nslookup homestead; do echo waiting for homestead to start ...; sleep 2; done']
containers:
- - image: "{{ .Values.image.path }}-sprout:{{ .Values.image.tag }}"
+ - image: "{{ .Values.repo.dockerHub }}/{{ .Values.image.path }}-sprout:{{ .Values.image.tag }}"
name: sprout
ports:
- containerPort: 22
@@ -47,7 +47,7 @@ spec:
volumeMounts:
- name: sproutlogs
mountPath: /var/log/sprout
- - image: busybox:1.28
+ - image: {{ .Values.repo.dockerHub }}/busybox:1.28
name: tailer
command: [ "tail", "-F", "/var/log/sprout/sprout_current.txt" ]
volumeMounts:
diff --git a/functest_kubernetes/ims/helm/values.yaml b/functest_kubernetes/ims/helm/values.yaml
index b2cb3272..03866e33 100644
--- a/functest_kubernetes/ims/helm/values.yaml
+++ b/functest_kubernetes/ims/helm/values.yaml
@@ -4,3 +4,6 @@
image:
path: ollivier/clearwater
tag: hunter
+repo:
+ dockerHub: docker.io
+ quay: quay.io