mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 02:30:53 +08:00
Add helm tests for applications
This commit is contained in:
@@ -14,4 +14,4 @@ sources:
|
||||
- https://hub.docker.com/r/plexinc/pms-docker/
|
||||
- https://github.com/k8s-at-home/charts/tree/master/charts/plex
|
||||
upstream_version: 2.1.0
|
||||
version: 1.6.25
|
||||
version: 1.7.0
|
||||
21
test/plex/1.7.0/templates/tests/deployment-check.yaml
Normal file
21
test/plex/1.7.0/templates/tests/deployment-check.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- $serviceName := (include "common.names.fullname" .) -}}
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-plex-test"
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
release: {{ .Release.Name }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
containers:
|
||||
- name: test-curl
|
||||
image: alpine/curl
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
command:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
- |
|
||||
curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}-tcp:32400/identity
|
||||
restartPolicy: Never
|
||||
Reference in New Issue
Block a user