From 4d6a89ccfab8f4133d7fb9fa77c3ec67c79d1b2a 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/Chart.yaml | 2 +- charts/fluentd/templates/tests/test-connection.yaml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/fluentd/Chart.yaml b/charts/fluentd/Chart.yaml index 99fafe16..cb748397 100644 --- a/charts/fluentd/Chart.yaml +++ b/charts/fluentd/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: fluentd description: A Helm chart for Kubernetes # type: application -version: 0.5.0 +version: 0.5.1 appVersion: v1.16.2 icon: https://www.fluentd.org/images/miscellany/fluentd-logo_2x.png home: https://www.fluentd.org/ 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