Skip to content

Commit

Permalink
add missing nodeSelector for os linux
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <[email protected]>
  • Loading branch information
matthyx committed Feb 25, 2025
1 parent 6c3bb3c commit f0fa154
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 36 deletions.
18 changes: 18 additions & 0 deletions charts/kubescape-operator/templates/autoupdater/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,22 @@ spec:
resources:
{{ toYaml .Values.helmReleaseUpgrader.resources | indent 14 }}
restartPolicy: OnFailure
nodeSelector:
{{- if .Values.helmReleaseUpgrader.nodeSelector }}
{{- toYaml .Values.helmReleaseUpgrader.nodeSelector | nindent 12 }}
{{- else if .Values.customScheduling.nodeSelector }}
{{- toYaml .Values.customScheduling.nodeSelector | nindent 12 }}
{{- end }}
affinity:
{{- if .Values.helmReleaseUpgrader.affinity }}
{{- toYaml .Values.helmReleaseUpgrader.affinity | nindent 12 }}
{{- else if .Values.customScheduling.affinity }}
{{- toYaml .Values.customScheduling.affinity | nindent 12 }}
{{- end }}
tolerations:
{{- if .Values.helmReleaseUpgrader.tolerations }}
{{- toYaml .Values.helmReleaseUpgrader.tolerations | nindent 12 }}
{{- else if .Values.customScheduling.tolerations }}
{{- toYaml .Values.customScheduling.tolerations | nindent 12 }}
{{- end }}
{{ end }}
Loading

0 comments on commit f0fa154

Please sign in to comment.