From 6763d7951ff1c77fa671d84483ed3d4fa23db75b Mon Sep 17 00:00:00 2001 From: Ulf Karlsson Date: Mon, 30 Oct 2023 15:07:20 +0100 Subject: [PATCH 1/5] Added a flag for invoking the post-upgrade-hook Signed-off-by: Ulf Karlsson Signed-off-by: Ulf Karlsson --- charts/litmus/README.md | 1 + charts/litmus/templates/post-upgrade-hook.yaml | 2 ++ charts/litmus/values.yaml | 1 + 3 files changed, 4 insertions(+) diff --git a/charts/litmus/README.md b/charts/litmus/README.md index 390adb97..3740a134 100644 --- a/charts/litmus/README.md +++ b/charts/litmus/README.md @@ -232,6 +232,7 @@ We separated service configuration from `portal.server.service` to `portal.serve | upgradeAgent.controlPlane.image.repository | string | `"upgrade-agent-cp"` | | | upgradeAgent.controlPlane.image.tag | string | `"3.0.0"` | | | upgradeAgent.controlPlane.restartPolicy | string | `"OnFailure"` | | +| upgradeAgent.enabled | bool | `false` | | | upgradeAgent.nodeSelector | object | `{}` | | | upgradeAgent.resources | object | `{}` | | | upgradeAgent.tolerations | list | `[]` | | diff --git a/charts/litmus/templates/post-upgrade-hook.yaml b/charts/litmus/templates/post-upgrade-hook.yaml index 7580232d..b9c41ce5 100644 --- a/charts/litmus/templates/post-upgrade-hook.yaml +++ b/charts/litmus/templates/post-upgrade-hook.yaml @@ -1,3 +1,4 @@ +{{- if .Values.upgradeAgent.enabled }} apiVersion: batch/v1 kind: Job metadata: @@ -76,3 +77,4 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} +{{- end }} diff --git a/charts/litmus/values.yaml b/charts/litmus/values.yaml index bc5e6507..3fd7da7e 100644 --- a/charts/litmus/values.yaml +++ b/charts/litmus/values.yaml @@ -57,6 +57,7 @@ ingress: # hosts: [] upgradeAgent: + enabled: false controlPlane: image: repository: upgrade-agent-cp From b48198b7f6a121ef1d91e44de294421a7694f54b Mon Sep 17 00:00:00 2001 From: Ulf Karlsson Date: Mon, 30 Oct 2023 15:16:13 +0100 Subject: [PATCH 2/5] Bumped Chart version Signed-off-by: Ulf Karlsson Signed-off-by: Ulf Karlsson --- charts/litmus/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/litmus/Chart.yaml b/charts/litmus/Chart.yaml index d8a298a6..25f3c94e 100644 --- a/charts/litmus/Chart.yaml +++ b/charts/litmus/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "3.0.0" description: A Helm chart to install ChaosCenter name: litmus -version: 3.0.1 +version: 3.0.2 kubeVersion: ">=1.16.0-0" home: https://litmuschaos.io sources: From 20ae136706b479cc225faa3aac5be934f2e5cc3f Mon Sep 17 00:00:00 2001 From: Ulf Karlsson Date: Mon, 30 Oct 2023 16:04:29 +0100 Subject: [PATCH 3/5] Updated documentation with helm-doc Signed-off-by: Ulf Karlsson --- charts/litmus/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/litmus/README.md b/charts/litmus/README.md index 3740a134..fb983a6c 100644 --- a/charts/litmus/README.md +++ b/charts/litmus/README.md @@ -1,6 +1,6 @@ # litmus -![Version: 3.0.1](https://img.shields.io/badge/Version-3.0.1-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) +![Version: 3.0.2](https://img.shields.io/badge/Version-3.0.2-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) A Helm chart to install ChaosCenter From 622eb920f2546975161d24634663623a2fe21f1e Mon Sep 17 00:00:00 2001 From: Ulf Karlsson Date: Mon, 6 Nov 2023 11:13:45 +0100 Subject: [PATCH 4/5] Set default to true for upgradeAgent Signed-off-by: Ulf Karlsson --- charts/litmus/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/litmus/values.yaml b/charts/litmus/values.yaml index 3fd7da7e..a8990fd3 100644 --- a/charts/litmus/values.yaml +++ b/charts/litmus/values.yaml @@ -57,7 +57,7 @@ ingress: # hosts: [] upgradeAgent: - enabled: false + enabled: true controlPlane: image: repository: upgrade-agent-cp From 43a1130a7aceaf7a21be01088177233c81f41fd2 Mon Sep 17 00:00:00 2001 From: Ulf Karlsson Date: Mon, 6 Nov 2023 11:44:17 +0100 Subject: [PATCH 5/5] Updated readme Signed-off-by: Ulf Karlsson --- charts/litmus/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/litmus/README.md b/charts/litmus/README.md index fb983a6c..1f6c2370 100644 --- a/charts/litmus/README.md +++ b/charts/litmus/README.md @@ -232,7 +232,7 @@ We separated service configuration from `portal.server.service` to `portal.serve | upgradeAgent.controlPlane.image.repository | string | `"upgrade-agent-cp"` | | | upgradeAgent.controlPlane.image.tag | string | `"3.0.0"` | | | upgradeAgent.controlPlane.restartPolicy | string | `"OnFailure"` | | -| upgradeAgent.enabled | bool | `false` | | +| upgradeAgent.enabled | bool | `true` | | | upgradeAgent.nodeSelector | object | `{}` | | | upgradeAgent.resources | object | `{}` | | | upgradeAgent.tolerations | list | `[]` | |