-
Notifications
You must be signed in to change notification settings - Fork 277
node: pass DPU lease config via env vars on dpu-host/dpu DaemonSets #2919
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -508,6 +508,9 @@ data: | |
| # Ensure openflow_probe_flag is always defined | ||
| openflow_probe_flag= | ||
|
|
||
| # Ensure dpu_lease_flags is always defined | ||
| dpu_lease_flags= | ||
|
|
||
| if [[ $# -ne 3 ]]; then | ||
| echo "Expected three arguments but got $#" | ||
| exit 1 | ||
|
|
@@ -551,6 +554,16 @@ data: | |
| # disable init-ovnkube-controller for dpu-host mode as it is not supported | ||
| init_ovnkube_controller="" | ||
|
|
||
| dpu_lease_flags="" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you already defined it once, no need |
||
| if [[ -n "${OVNKUBE_NODE_LEASE_RENEW_INTERVAL}" ]]; then | ||
| dpu_lease_flags="--dpu-node-lease-renew-interval ${OVNKUBE_NODE_LEASE_RENEW_INTERVAL}" | ||
| fi | ||
| if [[ -n "${OVNKUBE_NODE_LEASE_DURATION}" ]]; then | ||
| dpu_lease_flags="$dpu_lease_flags --dpu-node-lease-duration ${OVNKUBE_NODE_LEASE_DURATION}" | ||
| fi | ||
| if [[ -n "${OVNKUBE_NODE_LEASE_NAMESPACE}" ]]; then | ||
| dpu_lease_flags="$dpu_lease_flags --dpu-node-lease-namespace ${OVNKUBE_NODE_LEASE_NAMESPACE}" | ||
|
Comment on lines
+564
to
+565
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uhm we don't have this input arg in ovnk today: https://github.com/search?q=repo%3Aovn-kubernetes%2Fovn-kubernetes+dpu-node-lease-namespace&type=code
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry missed it |
||
| fi | ||
| fi | ||
|
|
||
| if [ "{{.OVN_GATEWAY_MODE}}" == "shared" ]; then | ||
|
|
@@ -702,5 +715,6 @@ data: | |
| ${ovn_v4_masquerade_subnet_opt} \ | ||
| ${ovn_v6_masquerade_subnet_opt} \ | ||
| ${ovn_v4_transit_switch_subnet_opt} \ | ||
| ${ovn_v6_transit_switch_subnet_opt} | ||
| ${ovn_v6_transit_switch_subnet_opt} \ | ||
| ${dpu_lease_flags} | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move it closer to the usage