mirror of
https://github.com/truenas/charts.git
synced 2026-11-14 06:48:09 +00:00
Add tests
This commit is contained in:
1 parent
9af540a2dc
commit
cfa08e51c7
4 files changed
+30
-2
No files matched your search
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-cactus-deployment-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
hostNetwork: true
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: {{ .Release.Name }}-cactus-deployment-test
|
||||
image: busybox
|
||||
# Note: Adding sleep 15, as even when cactus pod status is ready, I've seen API
|
||||
# taking a few seconds to be live and running.
|
||||
command: ['sh', '-c', 'sleep 15 && nc -vz {{ .Values.nodeIP }} {{ .Values.cactus.apiPort }}']
|
||||
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-machinaris-deployment-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
hostNetwork: true
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: {{ .Release.Name }}-machinaris-deployment-test
|
||||
image: busybox
|
||||
command: ['sh', '-c', 'nc -vz {{ .Values.nodeIP }} {{ .Values.machinarisApiPort }}']
|
||||
@@ -39,7 +39,7 @@ appVolumeMounts:
|
||||
|
||||
environmentVariables:
|
||||
- name: mode
|
||||
value: farming
|
||||
value: fullnode
|
||||
|
||||
coins:
|
||||
- cactus
|
||||
@@ -71,7 +71,7 @@ cactus:
|
||||
subPath: mnemonic.txt
|
||||
environmentVariables:
|
||||
- name: mode
|
||||
value: farming
|
||||
value: plotter
|
||||
|
||||
enableResourceLimits: true
|
||||
cpuLimit: 0.5
|
||||
|
||||
Reference in new issue
Block a user