mirror of
https://github.com/Sudo-JHare/FHIRFLARE-IG-Toolkit.git
synced 2025-09-18 07:05:02 +00:00
74 lines
3.1 KiB
YAML
74 lines
3.1 KiB
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: "{{ include "hapi-fhir-jpaserver.fullname" . }}-test-endpoints"
|
|
labels:
|
|
{{- include "hapi-fhir-jpaserver.labels" . | nindent 4 }}
|
|
{{ include "hapi-fhir-jpaserver.fullname" . }}-client: "true"
|
|
app.kubernetes.io/component: tests
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
spec:
|
|
restartPolicy: Never
|
|
automountServiceAccountToken: {{ .Values.tests.automountServiceAccountToken }}
|
|
securityContext:
|
|
{{- toYaml .Values.tests.podSecurityContext | nindent 4 }}
|
|
containers:
|
|
- name: test-metadata-endpoint
|
|
image: "{{ .Values.curl.image.registry }}/{{ .Values.curl.image.repository }}:{{ .Values.curl.image.tag }}"
|
|
command: ["curl", "--fail-with-body"]
|
|
args: ["http://{{ include "hapi-fhir-jpaserver.fullname" . }}:{{ .Values.service.port }}/fhir/metadata?_summary=true"]
|
|
{{- with .Values.restrictedContainerSecurityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.tests.resources }}
|
|
resources: {{- toYaml .Values.tests.resources | nindent 10 }}
|
|
{{- else if ne .Values.tests.resourcesPreset "none" }}
|
|
resources: {{- include "common.resources.preset" (dict "type" .Values.tests.resourcesPreset) | nindent 10 }}
|
|
{{- end }}
|
|
livenessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
readinessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
- name: test-patient-endpoint
|
|
image: "{{ .Values.curl.image.registry }}/{{ .Values.curl.image.repository }}:{{ .Values.curl.image.tag }}"
|
|
command: ["curl", "--fail-with-body"]
|
|
args: ["http://{{ include "hapi-fhir-jpaserver.fullname" . }}:{{ .Values.service.port }}/fhir/Patient?_count=1&_summary=true"]
|
|
{{- with .Values.restrictedContainerSecurityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.tests.resources }}
|
|
resources: {{- toYaml .Values.tests.resources | nindent 10 }}
|
|
{{- else if ne .Values.tests.resourcesPreset "none" }}
|
|
resources: {{- include "common.resources.preset" (dict "type" .Values.tests.resourcesPreset) | nindent 10 }}
|
|
{{- end }}
|
|
livenessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
readinessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
- name: test-metrics-endpoint
|
|
image: "{{ .Values.curl.image.registry }}/{{ .Values.curl.image.repository }}:{{ .Values.curl.image.tag }}"
|
|
command: ["curl", "--fail-with-body"]
|
|
args: ["http://{{ include "hapi-fhir-jpaserver.fullname" . }}:{{ .Values.metrics.service.port }}/actuator/prometheus"]
|
|
{{- with .Values.restrictedContainerSecurityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.tests.resources }}
|
|
resources: {{- toYaml .Values.tests.resources | nindent 10 }}
|
|
{{- else if ne .Values.tests.resourcesPreset "none" }}
|
|
resources: {{- include "common.resources.preset" (dict "type" .Values.tests.resourcesPreset) | nindent 10 }}
|
|
{{- end }}
|
|
livenessProbe:
|
|
exec:
|
|
command: ["true"]
|
|
readinessProbe:
|
|
exec:
|
|
command: ["true"]
|