Files
service-catalog/manifests/helm/openmetadata/1.12.1/templates/tests/test-connection.yaml
T
2026-02-27 14:51:57 +09:00

41 lines
1.0 KiB
YAML

apiVersion: v1
kind: Pod
metadata:
name: "{{ include "OpenMetadata.fullname" . }}-test-connection"
labels:
{{- include "OpenMetadata.labels" . | indent 4 }}
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": hook-succeeded
spec:
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 4 }}
{{- end }}
containers:
- name: wget
{{- with .Values.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
image: busybox
command: ['wget']
args: ['{{ include "OpenMetadata.fullname" . }}:{{ .Values.service.port }}']
{{- with .Values.testConnection.resources }}
resources:
{{- toYaml . | nindent 8 }}
{{- end }}
restartPolicy: Never
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}