Pārlūkot izejas kodu

Merge pull request #4 from truenas/ix-chart-test

Add deployment test for ix-chart
Waqar Ahmed 4 gadi atpakaļ
vecāks
revīzija
b9f6510cc0

+ 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

+ 39 - 0
test/ix-chart/2010.0.2/test_values.yaml

@@ -0,0 +1,39 @@
+# Default values for ix-chart.
+
+image:
+  repository: nginx
+  pullPolicy: IfNotPresent
+  # Overrides the image tag whose default is the chart appVersion.
+  tag: latest
+
+# Restart / Update policy
+restartPolicy: Always
+updateStrategy: RollingUpdate
+
+# Container CMD / entrypoint
+containerCommand: []
+containerArgs: []
+containerEnvironmentVariables: []
+
+# Network related configuration
+externalInterfaces: []
+portForwardingList: [{"containerPort": 80, "nodePort": 32000}]
+hostPortsList: []
+hostNetwork: false
+dnsPolicy: Default
+dnsConfig:
+  nameservers: []
+  searches: []
+
+# Storage related configuration
+hostPathVolumes: []
+volumes: []
+
+# Probes
+# Liveness Probe
+livenessProbe: null
+
+# Workload type
+workloadType: "Deployment"
+
+gpuConfiguration: {}

+ 20 - 2
test/ix-chart/2010.0.2/values.yaml

@@ -6,13 +6,26 @@ image:
   # Overrides the image tag whose default is the chart appVersion.
   tag: "testing"
 
+# Restart / Update policy
+restartPolicy: Always
+updateStrategy: RollingUpdate
+
 # Container CMD / entrypoint
-containerCommand: []
-containerArgs: []
+containerCommand:
+  - sleep
+containerArgs:
+  - infinity
 containerEnvironmentVariables: []
 
 # Network related configuration
 externalInterfaces: []
+portForwardingList: []
+hostPortsList: []
+hostNetwork: false
+dnsPolicy: Default
+dnsConfig:
+  nameservers: []
+  searches: []
 
 # Storage related configuration
 hostPathVolumes: []
@@ -21,3 +34,8 @@ volumes: []
 # Probes
 # Liveness Probe
 livenessProbe: null
+
+# Workload type
+workloadType: "Deployment"
+
+gpuConfiguration: {}