浏览代码

Add deployment test for ix-chart

Waqar Ahmed 4 年之前
父节点
当前提交
66653b71fe
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17 0
      test/ix-chart/2010.0.2/templates/tests/deployment-check.yaml

+ 17 - 0
test/ix-chart/2010.0.2/templates/tests/deployment-check.yaml

@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Pod
+metadata:
+  name: "{{ .Release.Name }}-deployment-test"
+  annotations:
+    "helm.sh/hook": test
+spec:
+  containers:
+    - name: {{ .Release.Name }}-deployment-test
+      image: "busybox"
+      command:
+        - nc
+      args:
+        - "-vz"
+        - "{{ .Release.Name }}-ix-chart"
+        - "80"
+  restartPolicy: Never