From e34aadfc4843aa11fd45e8ddb869f69295c315a9 Mon Sep 17 00:00:00 2001 From: Thomas Labarussias Date: Tue, 2 Apr 2024 15:13:12 +0200 Subject: [PATCH] fix the error with the NOTES when the ingress for falcosidekick-ui is enabled (at : error calling index: index of untyped nil Use) Signed-off-by: Thomas Labarussias --- charts/falcosidekick/CHANGELOG.md | 4 ++++ charts/falcosidekick/Chart.yaml | 2 +- charts/falcosidekick/templates/NOTES.txt | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/falcosidekick/CHANGELOG.md b/charts/falcosidekick/CHANGELOG.md index 6bb53dd5..3e2b0008 100644 --- a/charts/falcosidekick/CHANGELOG.md +++ b/charts/falcosidekick/CHANGELOG.md @@ -5,6 +5,10 @@ numbering uses [semantic versioning](http://semver.org). Before release 0.1.20, the helm chart can be found in `falcosidekick` [repository](https://github.com/falcosecurity/falcosidekick/tree/master/deploy/helm/falcosidekick). +## 0.7.16 + +- Fix the error with the `NOTES` (`index of untyped nil Use`) when the ingress is enabled to falcosidekick-ui + ## 0.7.15 - Fix ServiceMonitor selector labels diff --git a/charts/falcosidekick/Chart.yaml b/charts/falcosidekick/Chart.yaml index fc04cb33..9cd56096 100644 --- a/charts/falcosidekick/Chart.yaml +++ b/charts/falcosidekick/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 2.28.0 description: Connect Falco to your ecosystem icon: https://raw.githubusercontent.com/falcosecurity/falcosidekick/master/imgs/falcosidekick_color.png name: falcosidekick -version: 0.7.15 +version: 0.7.16 keywords: - monitoring - security diff --git a/charts/falcosidekick/templates/NOTES.txt b/charts/falcosidekick/templates/NOTES.txt index bee1a219..d49b5e5a 100644 --- a/charts/falcosidekick/templates/NOTES.txt +++ b/charts/falcosidekick/templates/NOTES.txt @@ -22,7 +22,7 @@ 2. Get the URL for Falcosidekick-UI (WebUI) by running these commands: {{- if .Values.webui.ingress.enabled }} {{- range $host := .Values.webui.ingress.hosts }} - http{{ if $.Values.webui.ingress.tls }}s{{ end }}://{{ $host.host }}{{ index .paths 0 }} + http{{ if $.Values.webui.ingress.tls }}s{{ end }}://{{ $host.host }}{{ index $host.paths 0 }} {{- end }} {{- else if contains "NodePort" .Values.webui.service.type }} export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "falcosidekick.fullname" . }})-ui