Skip to content

Commit

Permalink
feat: slack secrets in init container
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-segning committed Dec 11, 2024
1 parent 273ce7c commit 5585c89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/wazuh/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.24
version: 0.2.25

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 4 additions & 4 deletions charts/wazuh/templates/manager/sts.wazuh-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ spec:
envFrom:
- secretRef:
name: '{{ include "secret.common" $ }}'
{{ if and $.Values.notification $.Values.notification.slack $.Values.notification.slack.enabled -}}
- secretRef:
name: '{{ include "secret.notification-slack" $ }}'
{{- end }}
##
##
volumeMounts:
Expand Down Expand Up @@ -225,10 +229,6 @@ spec:
name: '{{ include "secret.indexer-auth" $ }}'
- secretRef:
name: '{{ include "secret.common" $ }}'
{{ if and $.Values.notification $.Values.notification.slack $.Values.notification.slack.enabled $.Values.notification.slack.externalSecret -}}
- secretRef:
name: '{{ include "secret.notification-slack" $ }}'
{{- end }}

{{ with .envFrom -}}
{{ include "common.tplvalues.render" (dict "value" . "context" $) | nindent 12}}
Expand Down
10 changes: 5 additions & 5 deletions charts/wazuh/templates/manager/sts.wazuh-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ spec:
envFrom:
- secretRef:
name: '{{ include "secret.common" $ }}'

{{ if and $.Values.notification $.Values.notification.slack $.Values.notification.slack.enabled -}}
- secretRef:
name: '{{ include "secret.notification-slack" $ }}'
{{- end }}
##
##
volumeMounts:
Expand Down Expand Up @@ -219,11 +224,6 @@ spec:
- secretRef:
name: '{{ include "secret.common" $ }}'

{{ if and $.Values.notification $.Values.notification.slack $.Values.notification.slack.enabled $.Values.notification.slack.externalSecret -}}
- secretRef:
name: '{{ include "secret.notification-slack" $ }}'
{{- end }}

{{ with .envFrom -}}
{{ include "common.tplvalues.render" (dict "value" . "context" $) | nindent 12}}
{{- end }}
Expand Down

0 comments on commit 5585c89

Please sign in to comment.