Skip to content

Commit

Permalink
Merge pull request #86 from lbi22/feat/add_affinity_nodeselector_tole…
Browse files Browse the repository at this point in the history
…ration

Add affinity, nodeselector and tolerations to deployment
  • Loading branch information
szEvEz authored Nov 25, 2024
2 parents 232d4cb + 0161ccc commit 0561463
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,15 @@ spec:
| nindent 10 }}
securityContext: {{- toYaml .Values.operator.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "charts.fullname" . }}-account
{{- with .Values.operator.trivyDojoReportOperator.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.operator.trivyDojoReportOperator.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.operator.trivyDojoReportOperator.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ operator:
seccompProfile:
type: RuntimeDefault
resources: {}
affinity: {}
nodeSelector: {}
tolerations: []
env:
defectDojoActive: "true"
defectDojoAutoCreateContext: "true"
Expand Down

0 comments on commit 0561463

Please sign in to comment.