From c349de1ef1a9d8ce954cf1304e47a34764b4849c Mon Sep 17 00:00:00 2001 From: Byron Mansfield Date: Fri, 22 Nov 2024 16:09:10 +0000 Subject: [PATCH] [stable/locust]: Updates configmap for locustfile and lib to not be wrapped in explictstring "example" (#634) * Updates configmap for locustfile and lib to not be wrapped in explicit naming string * Adds in conditional to check if locust lib configmap is required or not * Hopefully fixing the locust chart error --- stable/locust/Chart.yaml | 2 +- stable/locust/README.md | 4 ++-- stable/locust/templates/configmap-locust-lib.yaml | 2 +- stable/locust/templates/configmap-locust-locustfile.yaml | 2 -- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/stable/locust/Chart.yaml b/stable/locust/Chart.yaml index c6f68d98..776547a4 100644 --- a/stable/locust/Chart.yaml +++ b/stable/locust/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: locust -version: "0.32.0" +version: "0.32.1" appVersion: 2.32.2 home: https://github.com/locustio/locust icon: https://locust.io/static/img/logo.png diff --git a/stable/locust/README.md b/stable/locust/README.md index 35968b25..b08fb91f 100644 --- a/stable/locust/README.md +++ b/stable/locust/README.md @@ -1,6 +1,6 @@ # locust -![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![AppVersion: 2.32.2](https://img.shields.io/badge/AppVersion-2.32.2-informational?style=flat-square) +![Version: 0.32.1](https://img.shields.io/badge/Version-0.32.1-informational?style=flat-square) ![AppVersion: 2.32.2](https://img.shields.io/badge/AppVersion-2.32.2-informational?style=flat-square) A chart to install Locust, a scalable load testing tool written in Python. @@ -37,7 +37,7 @@ helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust To install a specific version of this chart: ```console -helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust --version 0.32.0 +helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/locust --version 0.32.1 ``` To install the chart with the release name `my-release`: diff --git a/stable/locust/templates/configmap-locust-lib.yaml b/stable/locust/templates/configmap-locust-lib.yaml index fc3286d7..9d9d4011 100644 --- a/stable/locust/templates/configmap-locust-lib.yaml +++ b/stable/locust/templates/configmap-locust-lib.yaml @@ -1,4 +1,4 @@ -{{- if eq .Values.loadtest.locust_lib_configmap "example-lib" }} +{{- if .Values.loadtest.locust_lib_configmap }} apiVersion: v1 kind: ConfigMap metadata: diff --git a/stable/locust/templates/configmap-locust-locustfile.yaml b/stable/locust/templates/configmap-locust-locustfile.yaml index efe8b0a9..ec2751d0 100644 --- a/stable/locust/templates/configmap-locust-locustfile.yaml +++ b/stable/locust/templates/configmap-locust-locustfile.yaml @@ -1,4 +1,3 @@ -{{- if eq .Values.loadtest.locust_locustfile_configmap "example-locustfile" }} apiVersion: v1 kind: ConfigMap metadata: @@ -7,4 +6,3 @@ metadata: {{ include "locust.labels" . | indent 4 }} data: {{ ($.Files.Glob (printf "locustfiles/%s/%s" .Values.loadtest.name .Values.loadtest.locust_locustfile)).AsConfig | indent 2 }} -{{- end }}