Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions stable/firehose/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ spec:
- mountPath: /work-dir
name: workdir
{{- end }}
{{- if or (gt (len .Values.volumeMounts) 0) }}
{{- range $_, $volumeMount := .Values.volumeMounts }}
- name: {{ $volumeMount.name}}
mountPath: {{ $volumeMount.mountPath }}
{{- end}}
{{- end}}
resources:
{{- toYaml .Values.firehose.resources | nindent 12 }}
envFrom:
Expand Down Expand Up @@ -85,3 +91,51 @@ spec:
- emptyDir: {}
name: workdir
{{- end }}
{{- if or (gt (len .Values.volumes) 0) }}
{{- range $_, $volume := .Values.volumes }}
- name: {{ $volume.name}}
secretName: {{ $volume.secretName }}
defaultMode: {{ $volume.defaultMode }}
items: {{- range $_, $item := $volume.items }}
- key: {{ $item.key }}
path: {{ $item.path }}
{{- end}}
{{- end}}
{{- end}}

{{- if (gt (len .Values.tolerations) 0) }}
tolerations: {{- range $_, $toleration := .Values.tolerations }}
- key: {{ $toleration.key }}
operator: {{ $toleration.operator }}
value: {{ $toleration.value }}
effect: {{ $toleration.effect }}
{{- end }}
{{- end}}
{{- if or (gt (len .Values.nodeAffinitiyMatchExpressions.requiredDuringSchedulingIgnoredDuringExecution) 0) (gt (len .Values.nodeAffinitiyMatchExpressions.preferredDuringSchedulingIgnoredDuringExecution) 0) }}
affinity:
nodeAffinity:
{{- if (gt (len .Values.nodeAffinitiyMatchExpressions.requiredDuringSchedulingIgnoredDuringExecution) 0) }}
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions: {{- range $_, $expression := .Values.nodeAffinitiyMatchExpressions.requiredDuringSchedulingIgnoredDuringExecution }}
- key: {{ $expression.key }}
operator: {{ $expression.operator }}
values: {{- range $expression.values }}
- {{ . }}
{{- end}}
{{- end}}
{{- end}}
{{- if (gt (len .Values.nodeAffinitiyMatchExpressions.preferredDuringSchedulingIgnoredDuringExecution) 0) }}
preferredDuringSchedulingIgnoredDuringExecution: {{- range $_, $expression := .Values.nodeAffinitiyMatchExpressions.preferredDuringSchedulingIgnoredDuringExecution }}
- weight: {{ $expression.weight}}
preference:
matchExpressions: {{- range $_, $pref := $expression.preference }}
- key: {{ $pref.key }}
operator: {{ $pref.operator }}
values: {{- range $pref.values }}
- {{ . }}
{{- end}}
{{- end}}
{{- end}}
{{- end}}
{{- end}}
10 changes: 10 additions & 0 deletions stable/firehose/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ firehose:
cpu: 200m
memory: 512Mi

tolerations: []

volumes: []

volumeMounts: []

nodeAffinitiyMatchExpressions:
requiredDuringSchedulingIgnoredDuringExecution: []
preferredDuringSchedulingIgnoredDuringExecution: []

init-firehose:
enabled: false
image:
Expand Down