Skip to content

Commit

Permalink
Merge pull request #792 from verrazzano/karak/add_container_security_…
Browse files Browse the repository at this point in the history
…context_for_fluentOperator

Add fluent operator security context at container level
  • Loading branch information
benjaminhuo committed Jun 13, 2023
2 parents 8882b3a + 070574c commit 7d5eabe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ spec:
containers:
- name: fluent-operator
image: {{ .Values.operator.container.repository }}:{{ .Values.operator.container.tag }}
{{- if .Values.operator.securityContext }}
securityContext:
{{ toYaml .Values.operator.securityContext | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.operator.resources | nindent 10 }}
env:
Expand Down
2 changes: 2 additions & 0 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ operator:
priorityClassName: ""
# Pod security context for Fluent Operator. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext: {}
# Container security context for Fluent Operator container. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContext: {}
# Fluent Operator resources. Usually user needn't to adjust these.
resources:
limits:
Expand Down

0 comments on commit 7d5eabe

Please sign in to comment.