Skip to content

Commit

Permalink
Add support for speaker securityContext
Browse files Browse the repository at this point in the history
Signed-off-by: Micah Nagel <micah.nagel@defenseunicorns.com>
  • Loading branch information
mjnagel committed Oct 2, 2023
1 parent 091a5eb commit 03f49bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/metallb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Kubernetes: `>= 1.19.0-0`
| speaker.reloader.resources | object | `{}` | |
| speaker.resources | object | `{}` | |
| speaker.runtimeClassName | string | `""` | |
| speaker.securityContext | object | `{}` | |
| speaker.serviceAccount.annotations | object | `{}` | |
| speaker.serviceAccount.create | bool | `true` | |
| speaker.serviceAccount.name | string | `""` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/metallb/templates/speaker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ spec:
serviceAccountName: {{ template "metallb.speaker.serviceAccountName" . }}
terminationGracePeriodSeconds: 0
hostNetwork: true
{{- if .Values.speaker.securityContext }}
securityContext:
{{- toYaml .Values.speaker.securityContext | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.speaker.memberlist.enabled }}
- name: memberlist
Expand Down
1 change: 1 addition & 0 deletions charts/metallb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ speaker:
# true, a name is generated using the fullname template
name: ""
annotations: {}
securityContext: {}
## Defines a secret name for the controller to generate a memberlist encryption secret
## By default secretName: {{ "metallb.fullname" }}-memberlist
##
Expand Down

0 comments on commit 03f49bc

Please sign in to comment.