24 lines
758 B
YAML
24 lines
758 B
YAML
{{- if .Values.testFramework.enabled }}
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: "{{ include "fluent-bit.fullname" . }}-test-connection"
|
|
namespace: {{ default .Release.Namespace .Values.testFramework.namespace }}
|
|
labels:
|
|
{{- include "fluent-bit.labels" . | nindent 4 }}
|
|
annotations:
|
|
"helm.sh/hook": test-success
|
|
spec:
|
|
containers:
|
|
- name: wget
|
|
image: {{ include "fluent-bit.image" .Values.testFramework.image | quote }}
|
|
imagePullPolicy: {{ .Values.testFramework.image.pullPolicy }}
|
|
command: ['wget']
|
|
args: ['{{ include "fluent-bit.fullname" . }}:{{ .Values.service.port }}']
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
restartPolicy: Never
|
|
{{- end }}
|