Skip to content

Commit

Permalink
Add back dhcpInterfaceType setting
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Mar 28, 2024
1 parent 99ba995 commit 0af9007
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tinkerbell/stack/templates/nginx.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{{- if .Values.stack.enabled }}
{{- $sourceInterface := .Values.stack.relay.sourceInterface -}}
{{- $ifaceModes := dict "ipvlan" "" "macvlan" "" -}}
{{- if not hasKey $ifaceModes .Values.stack.relay.interfaceMode -}}
{{- fail "invalid value in .stack.relay.interfaceMode: valid modes include ipvlan and macvlan" -}}
{{- $dhcpInterfaceType := default "macvlan" .Values.stack.relay.interfaceMode -}}
{{- if not (hasKey $ifaceModes $dhcpInterfaceType) -}}
{{- fail "invalid value at .stack.relay.interfaceMode: valid modes include ipvlan and macvlan" -}}
{{- end -}}
{{- $dhcpInterfaceName := printf "%s0" $dhcpInterfaceType -}}
apiVersion: apps/v1
Expand Down

0 comments on commit 0af9007

Please sign in to comment.