From d1dfd936c349d4e89d9b3f0d7d9c8ad007885b86 Mon Sep 17 00:00:00 2001 From: "Paulo E. Castro" Date: Thu, 16 Nov 2023 00:18:33 +0000 Subject: [PATCH] Correct basic test to pass in the default case. (#440) --- charts/fluentd/templates/tests/test-connection.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/fluentd/templates/tests/test-connection.yaml b/charts/fluentd/templates/tests/test-connection.yaml index 7c0f8150..66e7ede2 100644 --- a/charts/fluentd/templates/tests/test-connection.yaml +++ b/charts/fluentd/templates/tests/test-connection.yaml @@ -1,3 +1,10 @@ +{{/* +Target the very simple case where +fluentd is deployed with the default values +If the fluentd config is overriden and the metrics server removed +this will fail. +*/}} +{{ if empty .Values.service.ports }} apiVersion: v1 kind: Pod metadata: @@ -11,5 +18,6 @@ spec: - name: wget image: busybox command: ['wget'] - args: ['{{ include "fluentd.fullname" . }}:{{ .Values.service.port }}'] + args: ['{{ include "fluentd.fullname" . }}:24231/metrics'] restartPolicy: Never +{{ end }} \ No newline at end of file