Skip to content

feat(aks-node-controller): add remaining kubelet protos (excl. memswap) - #10042

Open
Mark Ibrahim (mxj220) wants to merge 1 commit into
mainfrom
markibrahim/kubelet-userdata-protos
Open

Mark Ibrahim (mxj220) wants to merge 1 commit into
mainfrom
markibrahim/kubelet-userdata-protos

Conversation

@mxj220

@mxj220 Mark Ibrahim (mxj220) commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Extend the kubelet configuration protobuf schema with two more optional fields requested by customers:

  • memoryManagerPolicy
  • reservedMemory

Regenerated the corresponding Go protobuf code.
Added one unit test to ensure NUMA node 0 is preserved by protobuf (0 is meaningful for NUMA nodes, not an empty value)

Existing field numbers remain unchanged.
This change adds schema support only; it does not change defaults or migrate existing kubelet flags.

Which issue(s) this PR fixes:

Fixes #

Copilot AI balanced review requested due to automatic review settings November 10, 2026 19:06
@github-actions

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 10, 2026, 7:06 PM

@github-actions

Copy link
Copy Markdown
Contributor

Windows Unit Test Results

  3 files   21 suites   1m 14s ⏱️
789 tests 789 ✅ 0 💤 0 ❌
815 runs  815 ✅ 0 💤 0 ❌

Results for commit 3837c1a.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
test 0% ❌
windows 27% ❌
staging_cse_windows Package 1 71% ➖
debug 0% ❌
provisioningscripts 2% ❌
parts_windows Package 1 73% ➖
Summary 39% (1983 / 7220) ❌

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the kubelet memory-manager configuration additions.

No open issues 🎉

1 file not reviewed
  • aks-node-controller/pkg/gen/aksnodeconfig/v1/kubelet_config.pb.go: Generated file
What changed in this PR

Extends the aks-node-controller kubelet configuration schema with memory-manager settings, without changing defaults or migrating existing kubelet flags.

Changes:

  • Adds memory_manager_policy and per-NUMA-node reserved_memory fields while preserving existing field numbers.
  • Regenerates Go protobuf types and descriptors for the new fields.
  • Adds a serialization test verifying that an explicitly configured NUMA node ID of 0 is preserved.
File Description
aks-node-controller/​proto/​aksnodeconfig/​v1/​kubelet_config.proto Defines memory-manager policy and memory reservations.
aks-node-controller/​pkg/​gen/​aksnodeconfig/​v1/​kubelet_config.pb.go Updates generated Go bindings and protobuf descriptors.
aks-node-controller/​parser/​kubelet_config_test.go Tests serialization of memory settings with NUMA node zero.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
shellspec spec 30% ❌
Summary 30% (4912 / 16591) ❌

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Package Line Rate Health
github.com/Azure/agentbaker/aks-node-controller 73% ➖
github.com/Azure/agentbaker/aks-node-controller/common 100% ✔
github.com/Azure/agentbaker/aks-node-controller/helpers 68% ➖
github.com/Azure/agentbaker/aks-node-controller/parser 88% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/gpu 100% ✔
github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils 92% ✔
github.com/Azure/agentbaker/aks-node-controller/utils 0% ❌
github.com/Azure/agentbaker/apiserver 24% ❌
github.com/Azure/agentbaker/cmd 0% ❌
github.com/Azure/agentbaker/cmd/starter 0% ❌
github.com/Azure/agentbaker/fuzz/api 0% ❌
github.com/Azure/agentbaker/hotfix/render-nodecustomdata 35% ❌
github.com/Azure/agentbaker/pkg/agent 79% ➖
github.com/Azure/agentbaker/pkg/agent/datamodel 77% ➖
github.com/Azure/agentbaker/pkg/agent/toggles 0% ❌
github.com/Azure/agentbaker/pkg/vhdbuilder/datamodel 87% ✔
Summary 76% (6094 / 8040) ➖

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants