From 7fed1fd056065a7e52b62409eb2097e31e4bd75c Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Thu, 26 Nov 2020 21:06:23 +0500 Subject: [PATCH 1/3] Add reasonable defaults --- test/ix-chart/2010.0.2/values.yaml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/test/ix-chart/2010.0.2/values.yaml b/test/ix-chart/2010.0.2/values.yaml index db558cfd91..f445446ae7 100644 --- a/test/ix-chart/2010.0.2/values.yaml +++ b/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: {} From b75422d73d450bd3b9b7a36d14a7a01bef5602b9 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Thu, 26 Nov 2020 21:33:48 +0500 Subject: [PATCH 2/3] Add a test_values.yaml to be used in ix-chart test --- test/ix-chart/2010.0.2/test_values.yaml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 test/ix-chart/2010.0.2/test_values.yaml diff --git a/test/ix-chart/2010.0.2/test_values.yaml b/test/ix-chart/2010.0.2/test_values.yaml new file mode 100644 index 0000000000..522688359d --- /dev/null +++ b/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: {} From 66653b71fe3e3f518ee3a5516b0d78931b1417b8 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Thu, 26 Nov 2020 22:00:36 +0500 Subject: [PATCH 3/3] Add deployment test for ix-chart --- .../templates/tests/deployment-check.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/ix-chart/2010.0.2/templates/tests/deployment-check.yaml diff --git a/test/ix-chart/2010.0.2/templates/tests/deployment-check.yaml b/test/ix-chart/2010.0.2/templates/tests/deployment-check.yaml new file mode 100644 index 0000000000..240a5f9421 --- /dev/null +++ b/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