From dba4a40932e4b9b921934b6517c9860c77d80008 Mon Sep 17 00:00:00 2001 From: Ulf Karlsson <143103234+nighthawq7@users.noreply.github.com> Date: Tue, 7 Nov 2023 16:13:42 +0100 Subject: [PATCH] Post upgrade hook fix (#347) * Added a flag for invoking the post-upgrade-hook Signed-off-by: Ulf Karlsson Signed-off-by: Ulf Karlsson * Bumped Chart version Signed-off-by: Ulf Karlsson Signed-off-by: Ulf Karlsson * Updated documentation with helm-doc Signed-off-by: Ulf Karlsson * Set default to true for upgradeAgent Signed-off-by: Ulf Karlsson * Updated readme Signed-off-by: Ulf Karlsson --------- Signed-off-by: Ulf Karlsson Signed-off-by: Ulf Karlsson Co-authored-by: Ulf Karlsson --- charts/litmus/Chart.yaml | 2 +- charts/litmus/README.md | 3 ++- charts/litmus/templates/post-upgrade-hook.yaml | 2 ++ charts/litmus/values.yaml | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) 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: diff --git a/charts/litmus/README.md b/charts/litmus/README.md index 390adb97..1f6c2370 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 @@ -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 | `true` | | | 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..a8990fd3 100644 --- a/charts/litmus/values.yaml +++ b/charts/litmus/values.yaml @@ -57,6 +57,7 @@ ingress: # hosts: [] upgradeAgent: + enabled: true controlPlane: image: repository: upgrade-agent-cp