Skip to content

Commit 47c13d5

Browse files
authored
chore: Fixed helm test (#466)
Signed-off-by: Steve Hipwell <[email protected]>
1 parent 4820ee4 commit 47c13d5

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

charts/fluent-bit/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
- logging
66
- fluent-bit
77
- fluentd
8-
version: 0.43.0
8+
version: 0.43.1
99
appVersion: 2.2.2
1010
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg
1111
home: https://fluentbit.io/
@@ -22,5 +22,5 @@ maintainers:
2222
2323
annotations:
2424
artifacthub.io/changes: |
25-
- kind: changed
26-
description: "Updated _Fluent Bit_ OCI image to [v2.2.2](https://github.com/fluent/fluent-bit/releases/tag/v2.2.2)."
25+
- kind: fixed
26+
description: "Fixed helm tests."

charts/fluent-bit/ci/ci-values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
testFramework:
2+
enabled: true
3+
14
logLevel: debug
25

36
dashboards:

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@ metadata:
55
name: "{{ include "fluent-bit.fullname" . }}-test-connection"
66
namespace: {{ default .Release.Namespace .Values.testFramework.namespace }}
77
labels:
8-
{{- include "fluent-bit.labels" . | nindent 4 }}
8+
helm.sh/chart: {{ include "fluent-bit.chart" . }}
9+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
10+
app.kubernetes.io/managed-by: {{ .Release.Service }}
911
annotations:
10-
"helm.sh/hook": test-success
12+
helm.sh/hook: test
13+
helm.sh/hook-delete-policy: hook-succeeded
1114
spec:
1215
containers:
1316
- name: wget
1417
image: {{ include "fluent-bit.image" .Values.testFramework.image | quote }}
1518
imagePullPolicy: {{ .Values.testFramework.image.pullPolicy }}
16-
command: ['wget']
17-
args: ['{{ include "fluent-bit.fullname" . }}:{{ .Values.service.port }}']
19+
command: ["sh"]
20+
args: ["-c", "wget -O- {{ include "fluent-bit.fullname" . }}:{{ .Values.service.port }}"]
1821
{{- with .Values.imagePullSecrets }}
1922
imagePullSecrets:
2023
{{- toYaml . | nindent 4 }}

charts/fluent-bit/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ serviceMonitor:
128128
# scheme: ""
129129
# tlsConfig: {}
130130

131-
## Beare in mind if youn want to collec metrics from a different port
131+
## Bear in mind if you want to collect metrics from a different port
132132
## you will need to configure the new ports on the extraPorts property.
133133
additionalEndpoints: []
134134
# - port: metrics
@@ -418,7 +418,7 @@ config:
418418
Time_Key time
419419
Time_Format %Y-%m-%dT%H:%M:%S.%L
420420
421-
# This allows adding more files with arbitary filenames to /fluent-bit/etc/conf by providing key/value pairs.
421+
# This allows adding more files with arbitrary filenames to /fluent-bit/etc/conf by providing key/value pairs.
422422
# The key becomes the filename, the value becomes the file content.
423423
extraFiles: {}
424424
# upstream.conf: |

0 commit comments

Comments
 (0)