Skip to content

Commit

Permalink
doc updates and simplify secret reference
Browse files Browse the repository at this point in the history
Signed-off-by: flockoftanks <[email protected]>
  • Loading branch information
flockoftanks authored and Jasstkn committed Mar 12, 2023
1 parent af9556d commit acf6981
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions charts/litmus-agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# litmus-agent

![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![AppVersion: 0.1.2](https://img.shields.io/badge/AppVersion-0.1.2-informational?style=flat-square)
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![AppVersion: 0.1.3](https://img.shields.io/badge/AppVersion-0.1.3-informational?style=flat-square)

A Helm chart to install litmus agent

Expand Down Expand Up @@ -64,7 +64,6 @@ $ helm install litmus-agent litmuschaos/litmus-agent \
| NS_EXISTS | bool | `true` | |
| PLATFORM_NAME | string | `"Others"` | |
| SA_EXISTS | bool | `true` | |
| existingHookSecret | string | `""` | Create a custom secret to be used by the pre-install hook (including `LITMUS_PASSWORD`) |
| chaos-exporter.enabled | bool | `true` | |
| chaos-operator.enabled | bool | `true` | |
| crds.create | bool | `true` | |
Expand All @@ -81,6 +80,7 @@ $ helm install litmus-agent litmuschaos/litmus-agent \
| resources.requests.cpu | string | `"100m"` | |
| resources.requests.memory | string | `"128Mi"` | |
| subscriber.enabled | bool | `true` | |
| useExistingHookSecret | bool | `false` | Use an existing hook secret instead of creating one with the chart, ref. to templates/secret.yaml |
| workflow-controller.crds.create | bool | `true` | |
| workflow-controller.enabled | bool | `true` | |

Expand Down
4 changes: 0 additions & 4 deletions charts/litmus-agent/templates/hook-pre-install-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ spec:
args: ["./litmus-agent", "--action", "create"]
envFrom:
- secretRef:
{{- if .Values.existingHookSecret }}
name: {{ .Values.existingHookSecret }}
{{- else }}
name: {{ include "litmus-agent.fullname" . }}-hook
{{ end }}
env:
- name: AGENT_NAME
value: {{ .Values.AGENT_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if not .Values.existingHookSecret }}
{{- if not .Values.useExistingHookSecret }}
apiVersion: v1
kind: Secret
metadata:
Expand Down
10 changes: 5 additions & 5 deletions charts/litmus-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ resources:
cpu: 100m
memory: 128Mi

# STRING: Name of secret created independently of this chart.
# This will stop the chart from making its own secret. Use
# /litmus-helm/charts/litmus-agent/templates/secret.yaml as a base template for
# the custom secret.
existingHookSecret: ""
# Custom secret name should be:
# `{{ include "litmus-agent.fullname" . }}-hook`
# I.E. `name: litmus-agent-hook`
# -- Use an existing hook secret instead of creating one with the chart, ref. to templates/secret.yaml
useExistingHookSecret: false

chaos-operator:
enabled: true
Expand Down

0 comments on commit acf6981

Please sign in to comment.