Skip to content

Commit

Permalink
Use busPath as selector for network devices
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Kvapil <[email protected]>
  • Loading branch information
kvaps committed Aug 8, 2024
1 parent 1a00187 commit 944eb33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions charts/talm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@
{{- range (lookup "routes" "" "").items }}
{{- if and (eq .spec.dst "") (not (eq .spec.gateway "")) }}
{{- with (lookup "links" "" .spec.outLinkName) }}
hardwareAddr: {{ .spec.hardwareAddr }}
driver: {{ .spec.driver }}
busPath: {{ .spec.busPath }}
{{- break }}
{{- end }}
{{- end }}
Expand Down
6 changes: 4 additions & 2 deletions pkg/generated/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ upgradeOptions:
preserve: false
stage: false
force: false
`,
"cozystack/talosconfig": `context: ""
contexts: {}
`,
"cozystack/templates/_helpers.tpl": `{{- define "talos.config" }}
machine:
Expand Down Expand Up @@ -338,8 +341,7 @@ description: A library Talm chart for Talos Linux
{{- range (lookup "routes" "" "").items }}
{{- if and (eq .spec.dst "") (not (eq .spec.gateway "")) }}
{{- with (lookup "links" "" .spec.outLinkName) }}
hardwareAddr: {{ .spec.hardwareAddr }}
driver: {{ .spec.driver }}
busPath: {{ .spec.busPath }}
{{- break }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 944eb33

Please sign in to comment.