Skip to content

Commit f460273

Browse files
authored
Merge pull request #65 from cgroschupp/feat/add-securityContext
Add securityContext to deployment
2 parents 8bf372c + fc56551 commit f460273

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

charts/velero/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: 1.2.0
33
description: A Helm chart for velero
44
name: velero
5-
version: 2.8.9
5+
version: 2.8.10
66
home: https://github.com/vmware-tanzu/velero
77
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
88
sources:

charts/velero/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ spec:
135135
{{- if .Values.extraVolumes }}
136136
{{- toYaml .Values.extraVolumes | nindent 8 }}
137137
{{- end }}
138+
{{- with .Values.securityContext }}
139+
securityContext:
140+
{{- toYaml . | nindent 8 }}
141+
{{- end }}
138142
{{- with .Values.nodeSelector }}
139143
nodeSelector:
140144
{{- toYaml . | nindent 8 }}

charts/velero/templates/restic-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ spec:
104104
{{- end }}
105105
securityContext:
106106
privileged: {{ .Values.restic.privileged }}
107+
{{- with .Values.restic.securityContext }}
108+
{{- toYaml . | nindent 12 }}
109+
{{- end }}
107110
{{- with .Values.restic.resources }}
108111
resources:
109112
{{- toYaml . | nindent 12 }}

charts/velero/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ initContainers: []
2828
# - mountPath: /target
2929
# name: plugins
3030

31+
# SecurityContext to use for the Velero deployment. Optional.
32+
# Set fsGroup for `AWS IAM Roles for Service Accounts`
33+
# see more informations at: https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
34+
securityContext: {}
35+
# fsGroup: 1337
36+
3137
# Tolerations to use for the Velero deployment. Optional.
3238
tolerations: []
3339

@@ -196,6 +202,12 @@ restic:
196202
# Extra volumeMounts for the Restic daemonset. Optional.
197203
extraVolumeMounts: []
198204

205+
# SecurityContext to use for the Velero deployment. Optional.
206+
# Set fsGroup for `AWS IAM Roles for Service Accounts`
207+
# see more informations at: https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
208+
securityContext: {}
209+
# fsGroup: 1337
210+
199211
# Backup schedules to create.
200212
# Eg:
201213
# schedules:

0 commit comments

Comments
 (0)