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 177d0d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tinkerbell/stack/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
{{- if not hasKey $ifaceModes .Values.stack.relay.interfaceMode -}}
{{- fail "invalid value in .stack.relay.interfaceMode: valid modes include ipvlan and macvlan" -}}
{{- end -}}
{{- $dhcpInterfaceType := "macvlan" -}}
{{- if eq .Values.stack.relay.interfaceMode "ipvlan" -}}
{{- $dhcpInterfaceType = "ipvlan" -}}
{{- end -}}
{{- $dhcpInterfaceName := printf "%s0" $dhcpInterfaceType -}}
apiVersion: apps/v1
kind: Deployment
Expand Down

0 comments on commit 177d0d4

Please sign in to comment.