feat(argo-events): Allow specifying container security context for controllers (#1081)

Signed-off-by: Muhammad Hamza Zaib <hamzazaib3202@gmail.com>

Co-authored-by: Marko Bevc <marko@scalefactory.com>
main argo-events-1.9.0
Muhammad Hamza Zaib 2022-01-10 20:55:34 +01:00 committed by GitHub
parent 9607e00969
commit e32f580733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2
description: A Helm chart to install Argo-Events in k8s Cluster
name: argo-events
version: 1.8.0
version: 1.9.0
keywords:
- argo-events
- sensor-controller
@ -17,4 +17,4 @@ icon: https://argoproj.github.io/argo-events/assets/logo.png
home: https://github.com/argoproj/argo-helm
annotations:
artifacthub.io/changes: |
- "[Changed]: Update to Argo Events v1.5.0"
- "[Added]: Allow specifying container security context for controllers"

View File

@ -61,6 +61,9 @@ spec:
initialDelaySeconds: 3
periodSeconds: 3
resources: {{- toYaml .Values.eventbusController.resources | nindent 12 }}
{{- with .Values.eventbusController.containerSecurityContext }}
securityContext: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.eventbusController.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}

View File

@ -59,6 +59,9 @@ spec:
initialDelaySeconds: 3
periodSeconds: 3
resources: {{- toYaml .Values.eventsourceController.resources | nindent 12 }}
{{- with .Values.eventsourceController.containerSecurityContext }}
securityContext: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.eventsourceController.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}

View File

@ -59,6 +59,9 @@ spec:
initialDelaySeconds: 3
periodSeconds: 3
resources: {{- toYaml .Values.sensorController.resources | nindent 12 }}
{{- with .Values.sensorController.containerSecurityContext }}
securityContext: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.sensorController.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}

View File

@ -58,6 +58,7 @@ sensorController:
tolerations: []
affinity: {}
resources: {}
containerSecurityContext: {}
eventsourceController:
name: eventsource-controller
@ -75,6 +76,7 @@ eventsourceController:
tolerations: []
affinity: {}
resources: {}
containerSecurityContext: {}
eventbusController:
name: eventbus-controller
@ -93,6 +95,7 @@ eventbusController:
resources: {}
natsStreamingImage: nats-streaming:0.22.1
natsMetricsExporterImage: natsio/prometheus-nats-exporter:0.8.0
containerSecurityContext: {}
securityContext:
runAsNonRoot: true