Skip to content

Commit

Permalink
add pod scheduling properties to chart
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsgstrabo committed May 23, 2024
1 parent af3bfb0 commit ddc8ab1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
14 changes: 10 additions & 4 deletions charts/radix-vulnerability-scanner/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
apiVersion: v1
appVersion: 1.1.3
version: 1.1.3
description: Scan images in RadixDeployments for vulnerabilities
apiVersion: v2
name: radix-vulnerability-scanner
description: Scan images in RadixDeployments for vulnerabilities
kubeVersion: ">=1.24.0"
appVersion: 1.1.3
version: 1.2.0
sources:
- https://github.com/equinor/radix-vulnerability-scanner
maintainers:
- name: Omnia Radix Development Team
email: [email protected]
12 changes: 12 additions & 0 deletions charts/radix-vulnerability-scanner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: radix-vulnerability-scanner
imagePullPolicy: Always
Expand Down
9 changes: 9 additions & 0 deletions charts/radix-vulnerability-scanner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ extraVolumes: []
# Extra volume mounts. Can be used to manually mount the dockerConfigFile
extraVolumeMounts: []

# Affinity for pod scheduling
affinity: {}

# Node selector for pod scheduling
nodeSelector: {}

# Tolerations for pod scheduling
tolerations: []

resources:
requests:
cpu: 100m
Expand Down

0 comments on commit ddc8ab1

Please sign in to comment.