Skip to content

Commit

Permalink
suite: nodeSelector for hookImageServer (so Jobs and nginx can use ho…
Browse files Browse the repository at this point in the history
…stPath)
  • Loading branch information
rpardini committed Aug 3, 2024
1 parent e9de8d7 commit 5d22e1d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tinkerbell/suite/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ dependencies:

# showcase chart!
- name: showcase
version: "0.0.2"
version: "0.0.3"
repository: "file://../showcase"
condition: showcase.enabled
6 changes: 6 additions & 0 deletions tinkerbell/suite/templates/hook-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ spec:
labels:
app: hook-image-server
spec:
{{- if .Values.hookImageServer.nodeSelector }}
nodeSelector:
{{- range $key, $value := .Values.hookImageServer.nodeSelector }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
{{- end }}
containers:
- name: hook-image-server
image: nginx:1
Expand Down
1 change: 1 addition & 0 deletions tinkerbell/suite/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

hookImageServer:
enabled: true
nodeSelector: null

nodePort:
hookImageServer:
Expand Down

0 comments on commit 5d22e1d

Please sign in to comment.