kubezero/charts/kubezero-logging/charts/fluent-bit/templates/tests/test-connection.yaml

27 lines
929 B
YAML
Raw Normal View History

{{- if .Values.testFramework.enabled }}
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "fluent-bit.fullname" . }}-test-connection"
2023-08-23 12:20:50 +00:00
namespace: {{ default .Release.Namespace .Values.testFramework.namespace }}
labels:
2024-04-08 12:30:01 +00:00
helm.sh/chart: {{ include "fluent-bit.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
annotations:
2024-04-08 12:30:01 +00:00
helm.sh/hook: test
helm.sh/hook-delete-policy: hook-succeeded
spec:
containers:
- name: wget
2023-08-23 12:20:50 +00:00
image: {{ include "fluent-bit.image" .Values.testFramework.image | quote }}
imagePullPolicy: {{ .Values.testFramework.image.pullPolicy }}
2024-04-08 12:30:01 +00:00
command: ["sh"]
args: ["-c", "wget -O- {{ include "fluent-bit.fullname" . }}:{{ .Values.service.port }}"]
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 4 }}
{{- end }}
restartPolicy: Never
{{- end }}