Alexandros Kosiaris has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/405016 )

Change subject: Include scaffold for service-checker helm tests
......................................................................


Include scaffold for service-checker helm tests

Service checker can be used to test the basic integrity of services
images before they are promoted to staging.

Depends-On: If3133a71d116d716539dca3482c8a4eda9412d4d
Change-Id: Ide2da1d279d6cf3ece7a22d195a6c79760592210
---
M _scaffold/templates/_helpers.tpl
A _scaffold/templates/tests/test-service-checker.yaml
2 files changed, 18 insertions(+), 0 deletions(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/_scaffold/templates/_helpers.tpl b/_scaffold/templates/_helpers.tpl
index 1bd263d..d2a4191 100644
--- a/_scaffold/templates/_helpers.tpl
+++ b/_scaffold/templates/_helpers.tpl
@@ -19,3 +19,7 @@
 {{- define "wmf.chartid" -}}
 {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
 {{- end -}}
+
+{{- define "wmf.appbaseurl" -}}
+http://{{ template "wmf.releasename" . }}:{{ .Values.main_app.port }}
+{{- end -}}
diff --git a/_scaffold/templates/tests/test-service-checker.yaml 
b/_scaffold/templates/tests/test-service-checker.yaml
new file mode 100644
index 0000000..4e17cb1
--- /dev/null
+++ b/_scaffold/templates/tests/test-service-checker.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Pod
+metadata:
+  name: '{{ template "wmf.releasename" . }}-service-checker'
+  annotations:
+    "helm.sh/hook": test-success
+spec:
+  containers:
+  - name: '{{ template "wmf.releasename" . }}-service-checker'
+    image: "{{ .Values.docker.registry }}/service-checker"
+    imagePullPolicy: {{ .Values.docker.pull_policy }}
+    args: ["-t", "5", '{{ template "wmf.releasename" . }}', '{{ template 
"wmf.appbaseurl" . }}']
+  dnsPolicy: ClusterFirst
+  restartPolicy: Never

-- 
To view, visit https://gerrit.wikimedia.org/r/405016
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ide2da1d279d6cf3ece7a22d195a6c79760592210
Gerrit-PatchSet: 4
Gerrit-Project: operations/deployment-charts
Gerrit-Branch: master
Gerrit-Owner: Dduvall <dduv...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: Thcipriani <tcipri...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to