J release changes
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / kong / templates / tests / test-jobs.yaml
1 {{- if  .Values.deployment.test.enabled }}
2 ---
3 apiVersion: v1
4 kind: Pod
5 metadata:
6   name: "{{ .Release.Name }}-test-ingress"
7   annotations:
8     "helm.sh/hook": test
9 spec:
10   restartPolicy: OnFailure
11   containers:
12     - name: "{{ .Release.Name }}-curl"
13       image: curlimages/curl
14       command:
15         - curl
16         - "http://{{ .Release.Name }}-kong-proxy.{{ .Release.Namespace }}.svc.cluster.local/httpbin"
17 ---
18 apiVersion: v1
19 kind: Pod
20 metadata:
21   name: "{{ .Release.Name }}-test-httproute"
22   annotations:
23     "helm.sh/hook": test
24 spec:
25   restartPolicy: OnFailure
26   containers:
27     - name: "{{ .Release.Name }}-curl"
28       image: curlimages/curl
29       command:
30         - curl
31         - "http://{{ .Release.Name }}-kong-proxy.{{ .Release.Namespace }}.svc.cluster.local/httproute"
32 {{- end }}