Skip to content

Commit

Permalink
add optional secret for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alesz committed Sep 17, 2024
1 parent bd9128c commit 5eb8854
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/charts/scrubbed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Deploy Scrubbed via Helm
| signalilo.listenPort | string | `"8888"` | Listen port of Signalilo service |
| signalilo.resources | object | `{}` | Resource limits and requests for scrubbed |
| signalilo.serviceName | string | `"signalilo"` | Signalilo service name |
| signalilo.testSecret | bool | `false` | generate secret for CI testing, if false provide your own. Required keys are SIGNALILO_ALERTMANAGER_BEARER_TOKEN and SIGNALILO_ICINGA_PASSWORD |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
1 change: 1 addition & 0 deletions deploy/charts/scrubbed/ci/default-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ scrubbed:

signalilo:
enabled: true
testSecret: true
12 changes: 12 additions & 0 deletions deploy/charts/scrubbed/templates/secret-signalilo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if and .Values.signalilo.enabled .Values.signalilo.testSecret -}}
kind: Secret
apiVersion: v1
metadata:
name: {{ include "scrubbed.fullname" . }}-signalilo
labels:
{{- include "scrubbed.labels" . | nindent 4 }}
app.kubernetes.io/component: signalilo
stringData::
SIGNALILO_ALERTMANAGER_BEARER_TOKEN: foo
SIGNALILO_ICINGA_PASSWORD: bar
{{- end -}}
2 changes: 2 additions & 0 deletions deploy/charts/scrubbed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ signalilo:
# memory: 16Mi
# -- Signalilo service name
serviceName: signalilo
# -- generate secret for CI testing, if false provide your own. Required keys are SIGNALILO_ALERTMANAGER_BEARER_TOKEN and SIGNALILO_ICINGA_PASSWORD
testSecret: false

0 comments on commit 5eb8854

Please sign in to comment.