Skip to content

Commit

Permalink
Post upgrade hook fix (litmuschaos#347)
Browse files Browse the repository at this point in the history
* Added a flag for invoking the post-upgrade-hook

Signed-off-by: Ulf Karlsson <[email protected]>
Signed-off-by: Ulf Karlsson <[email protected]>

* Bumped Chart version

Signed-off-by: Ulf Karlsson <[email protected]>
Signed-off-by: Ulf Karlsson <[email protected]>

* Updated documentation with helm-doc

Signed-off-by: Ulf Karlsson <[email protected]>

* Set default to true for upgradeAgent

Signed-off-by: Ulf Karlsson <[email protected]>

* Updated readme

Signed-off-by: Ulf Karlsson <[email protected]>

---------

Signed-off-by: Ulf Karlsson <[email protected]>
Signed-off-by: Ulf Karlsson <[email protected]>
Co-authored-by: Ulf Karlsson <[email protected]>
  • Loading branch information
nighthawq7 and Ulf Karlsson authored Nov 7, 2023
1 parent 177db45 commit dba4a40
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/litmus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion charts/litmus/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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 | `[]` | |
Expand Down
2 changes: 2 additions & 0 deletions charts/litmus/templates/post-upgrade-hook.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.upgradeAgent.enabled }}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down Expand Up @@ -76,3 +77,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/litmus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ ingress:
# hosts: []

upgradeAgent:
enabled: true
controlPlane:
image:
repository: upgrade-agent-cp
Expand Down

0 comments on commit dba4a40

Please sign in to comment.