From 412c84d710105aee40a3aacce43140a318f80764 Mon Sep 17 00:00:00 2001 From: Calvin Audier Date: Fri, 25 Aug 2023 19:07:36 +0200 Subject: [PATCH 1/3] Remove hardcoded version in litmus-agent charts - Use a variable for the version value in the hook-pre-install-job templates - Add variable to the values.yaml with a default value of 3.0.0-beta8 - Bump chart to version 0.2.1 Signed-off-by: Calvin Audier --- charts/litmus-agent/Chart.yaml | 2 +- charts/litmus-agent/templates/hook-pre-install-job.yaml | 2 +- charts/litmus-agent/values.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/litmus-agent/Chart.yaml b/charts/litmus-agent/Chart.yaml index 5cd1a054..47013ca8 100644 --- a/charts/litmus-agent/Chart.yaml +++ b/charts/litmus-agent/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "0.2.0" description: A Helm chart to install litmus agent name: litmus-agent -version: 0.2.0 +version: 0.2.1 kubeVersion: ">=1.16.0-0" home: https://litmuschaos.io sources: diff --git a/charts/litmus-agent/templates/hook-pre-install-job.yaml b/charts/litmus-agent/templates/hook-pre-install-job.yaml index 8702a397..4b83cd51 100644 --- a/charts/litmus-agent/templates/hook-pre-install-job.yaml +++ b/charts/litmus-agent/templates/hook-pre-install-job.yaml @@ -64,7 +64,7 @@ spec: value: {{ .Release.Namespace }} - name: APP_VERSION - value: "3.0.0-beta8" #For compatibility with 3.0.0-beta8 ChaosCenter, Version has to be same + value: {{ .Values.APP_VERSION }} - name: SERVICE_ACCOUNT_NAME value: {{ include "litmus-agent.serviceAccountName" . }} diff --git a/charts/litmus-agent/values.yaml b/charts/litmus-agent/values.yaml index 4d7584cc..3742b7d7 100644 --- a/charts/litmus-agent/values.yaml +++ b/charts/litmus-agent/values.yaml @@ -16,6 +16,7 @@ AGENT_NODE_SELECTOR: "" SA_EXISTS: true NS_EXISTS: true CLUSTER_TYPE: "external" +APP_VERSION: "3.0.0-beta8" #For compatibility with 3.0.0-beta8 ChaosCenter, Version has to be same SKIP_SSL: "false" # PLATFORM_NAME: AWS, GKE, Openshift, Rancher, Others From 30195f8e9d132e05b04f7c7f0be85a1ea9b26f82 Mon Sep 17 00:00:00 2001 From: Calvin Audier Date: Fri, 25 Aug 2023 19:14:19 +0200 Subject: [PATCH 2/3] Regenerate the documentation for litmus-agent with helm-docs Signed-off-by: Calvin Audier --- charts/litmus-agent/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/litmus-agent/README.md b/charts/litmus-agent/README.md index 02353f83..57f0bf8b 100644 --- a/charts/litmus-agent/README.md +++ b/charts/litmus-agent/README.md @@ -1,6 +1,6 @@ # litmus-agent -![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: 0.2.0](https://img.shields.io/badge/AppVersion-0.2.0-informational?style=flat-square) +![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![AppVersion: 0.2.0](https://img.shields.io/badge/AppVersion-0.2.0-informational?style=flat-square) A Helm chart to install litmus agent @@ -55,6 +55,7 @@ $ helm install litmus-agent litmuschaos/litmus-agent \ | AGENT_DESCRIPTION | string | `"chaos agent deployed with helm"` | | | AGENT_NAME | string | `"helm-agent"` | | | AGENT_NODE_SELECTOR | string | `""` | | +| APP_VERSION | string | `"3.0.0-beta8"` | | | CLUSTER_TYPE | string | `"external"` | | | LITMUS_BACKEND_URL | string | `""` | | | LITMUS_PASSWORD | string | `"litmus"` | | From 4c75a02b4840d1037349bb7d76bfc6bf84a4d7fe Mon Sep 17 00:00:00 2001 From: Calvin Audier Date: Fri, 25 Aug 2023 19:43:44 +0200 Subject: [PATCH 3/3] Resolve lint issues found in pipeline Signed-off-by: Calvin Audier --- charts/litmus-agent/values.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/litmus-agent/values.yaml b/charts/litmus-agent/values.yaml index 3742b7d7..46d74953 100644 --- a/charts/litmus-agent/values.yaml +++ b/charts/litmus-agent/values.yaml @@ -16,7 +16,8 @@ AGENT_NODE_SELECTOR: "" SA_EXISTS: true NS_EXISTS: true CLUSTER_TYPE: "external" -APP_VERSION: "3.0.0-beta8" #For compatibility with 3.0.0-beta8 ChaosCenter, Version has to be same +# For compatibility with 3.0.0-beta8 ChaosCenter, Version has to be same +APP_VERSION: "3.0.0-beta8" SKIP_SSL: "false" # PLATFORM_NAME: AWS, GKE, Openshift, Rancher, Others