Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack: introduce relay.macvlanIntfNumber to avoid using random number #87

Closed
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion tinkerbell/stack/templates/nginx.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.stack.enabled }}
{{- $sourceInterface := .Values.stack.relay.sourceInterface -}}
{{- $macvlanInterfaceName := printf "%s%s" "macvlan" (randNumeric 2) -}}
{{- $macvlanInterfaceName := printf "%s%s" "macvlan" (.Values.stack.relay.macvlanIntfNumber | default (randNumeric 2)) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
1 change: 1 addition & 0 deletions tinkerbell/stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ stack:
# sourceInterface is the Host/Node interface to use for listening for DHCP broadcast packets.
# When unset, the interface from the default route will be used.
# sourceInterface: eno1
macvlanIntfNumber: null # string! if unset, will use a random interface number, which will cause each Helm deploy to restart the relay
# TODO(jacobweinstock): add feature to be able to disable listening for broadcast traffic.

# -- Overrides
Expand Down
Loading