sumologic-kubernetes-collection icon indicating copy to clipboard operation
sumologic-kubernetes-collection copied to clipboard

Better method to detect helm chart version in template tests

Open kasia-kujawa opened this issue 10 months ago • 1 comments

It would be good to have better method to detect helm chart version in helm templates. Sometimes container image can have same image tag as our helm chart, in current form of template tests this container tag will be replaced to %CURRENT_CHART_VERSION%

related to #3626

kasia-kujawa avatar Mar 29 '24 12:03 kasia-kujawa

There is limited number of cases:

➜  sumologic-kubernetes-collection git:(main) ✗ grep '%CURRENT_CHART_VERSION%' -hR tests/helm/testdata/goldenfile | sed 's/^ *//;' | sort | uniq
app.kubernetes.io/version: "%CURRENT_CHART_VERSION%"
chart: "sumologic-%CURRENT_CHART_VERSION%"
chart: sumologic-%CURRENT_CHART_VERSION%
client: k8s_%CURRENT_CHART_VERSION%
description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%"

sumo-drosiek avatar Mar 29 '24 12:03 sumo-drosiek