Skip to content

Commit 75070eb

Browse files
arunkumar-1992Arunkumar Chithaluri
andauthored
feat: Add option to disable pre-install hook job via enablePreInstallJob flag (#456)
chore: bump the chart version to 3.21.1 feat(litmus-agent): add enablePreInstallJob flag to disable pre-install hook job and update docs Signed-off-by: arunkumar-1992 <[email protected]> Co-authored-by: Arunkumar Chithaluri <[email protected]>
1 parent e75534e commit 75070eb

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

charts/litmus-agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "3.21.0"
33
description: A Helm chart to install litmus agent
44
name: litmus-agent
5-
version: 3.21.0
5+
version: 3.21.1
66
kubeVersion: ">=1.16.0-0"
77
home: https://litmuschaos.io
88
sources:

charts/litmus-agent/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# litmus-agent
22

3-
![Version: 3.21.0](https://img.shields.io/badge/Version-3.21.0-informational?style=flat-square) ![AppVersion: 3.21.0](https://img.shields.io/badge/AppVersion-3.21.0-informational?style=flat-square)
3+
![Version: 3.21.1](https://img.shields.io/badge/Version-3.21.1-informational?style=flat-square) ![AppVersion: 3.21.0](https://img.shields.io/badge/AppVersion-3.21.0-informational?style=flat-square)
44

55
A Helm chart to install litmus agent
66

@@ -71,6 +71,7 @@ $ helm install litmus-agent litmuschaos/litmus-agent \
7171
| chaos-exporter.enabled | bool | `true` | |
7272
| chaos-operator.enabled | bool | `true` | |
7373
| crds.create | bool | `true` | |
74+
| enablePreInstallJob | bool | `true` | Enable the pre-install hook job that registers this agent with ChaosCenter. Set to false for standallone litmus-agent installation (no ChaosCenter) however other ChaosCenter resources (e.g., hook Secrets/ConfigMaps) may still be rendered; manage them via their own flags (e.g., useExistingHookSecret). |
7475
| event-tracker.enabled | bool | `true` | |
7576
| global.INFRA_MODE | string | `"cluster"` | |
7677
| global.customLabels | object | `{}` | |

charts/litmus-agent/templates/hook-pre-install-job.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.enablePreInstallJob }}
12
apiVersion: batch/v1
23
kind: Job
34
metadata:
@@ -83,3 +84,4 @@ spec:
8384

8485
resources:
8586
{{- toYaml .Values.resources | nindent 10 }}
87+
{{end}}

charts/litmus-agent/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ resources:
5050
cpu: 100m
5151
memory: 128Mi
5252

53+
# -- Enable the pre-install hook job that registers this agent with ChaosCenter.
54+
# Set to false for standallone litmus-agent installation (no ChaosCenter) however other ChaosCenter resources (e.g., hook Secrets/ConfigMaps) may still be rendered;
55+
# manage them via their own flags (e.g., useExistingHookSecret).
56+
enablePreInstallJob: true
57+
5358
# Existing Secret name should be:
5459
# `{{ include "subscriber.fullname" . }}-hook`
5560
# I.E. `name: litmus-agent-hook`

0 commit comments

Comments
 (0)