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>
This commit is contained in:
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 apiVersion: v2
description: A Helm chart to install Argo-Events in k8s Cluster description: A Helm chart to install Argo-Events in k8s Cluster
name: argo-events name: argo-events
version: 1.8.0 version: 1.9.0
keywords: keywords:
- argo-events - argo-events
- sensor-controller - sensor-controller
@ -17,4 +17,4 @@ icon: https://argoproj.github.io/argo-events/assets/logo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
annotations: annotations:
artifacthub.io/changes: | 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 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 3
resources: {{- toYaml .Values.eventbusController.resources | nindent 12 }} resources: {{- toYaml .Values.eventbusController.resources | nindent 12 }}
{{- with .Values.eventbusController.containerSecurityContext }}
securityContext: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.eventbusController.priorityClassName }} {{- with .Values.eventbusController.priorityClassName }}
priorityClassName: {{ . | quote }} priorityClassName: {{ . | quote }}
{{- end }} {{- end }}

View file

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

View file

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

View file

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