Skip to content

config: clarify Kubernetes networking ownership - #206

Merged
Zariel merged 2 commits into
mainfrom
agent/networking-management-contract
Aug 5, 2026
Merged

config: clarify Kubernetes networking ownership#206
Zariel merged 2 commits into
mainfrom
agent/networking-management-contract

Conversation

@Zariel

@Zariel Zariel commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • document bounded native kubeadm as the stable interface for Pod CIDRs, Service CIDRs, and kube-proxy policy
  • prove those settings survive ClusterConfig compilation
  • prove a management.address-only diff is target-only and plans no node mutation

Why

These cluster-wide networking settings already belong to kubeadm's native API; duplicating them would create two sources of truth. Management addresses are workstation routing information, so their lifecycle classification should be explicit and independently tested.

Keep cluster-wide Pod and Service CIDRs and kube-proxy policy on the
bounded native kubeadm interface, with compiler-backed operator
guidance. Prove that management address changes remain workstation
targeting only and do not plan node mutation.
@Zariel
Zariel enabled auto-merge (squash) August 5, 2026 22:53
@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown

Greptile Summary

The PR documents native kubeadm ownership of cluster-wide networking settings and adds regression coverage for preserving those settings and treating management addresses as workstation routing data.

  • Verifies Pod CIDRs, Service CIDRs, kube-proxy omission, and kube-proxy policy in compiled kubeadm configuration.
  • Adds inspection and apply-path tests for a management-address-only configuration change.
  • Clarifies the public and internal cluster-manifest contracts.

Confidence Score: 4/5

The PR should not merge until the management-address-only guarantee is tested through the production planner rather than a predetermined fake response.

The added apply test hard-codes validation as unchanged, so a production planning regression that schedules or rejects node mutation for a management-address-only edit would still leave the test passing.

Files Needing Attention: cmd/katlctl/kubeadm_control_plane_config_test.go

Important Files Changed

Filename Overview
internal/installer/configbundle/bundle_test.go The revised archive test now includes and validates the preserved KubeProxyConfiguration document, resolving the earlier coverage omission.
cmd/katlctl/kubeadm_control_plane_config_test.go The apply test verifies updated targeting and unchanged rendering, but hard-codes the planner’s NoChanges result instead of exercising production planning.
cmd/katlctl/config_inspect_test.go Adds focused inspection coverage for target-only classification of management-address changes.
docs/installing.md Documents native kubeadm configuration as the stable interface for cluster-wide Kubernetes networking.
docs/internal/cluster-manifest-contract.md Records ownership of CIDRs and kube-proxy policy in the internal configuration contract.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[ClusterConfig with native kubeadm documents] --> B[BuildArchive]
  B --> C[Compiled control-plane kubeadm config]
  C --> D[InitConfiguration skipPhases]
  C --> E[ClusterConfiguration networking]
  C --> F[KubeProxyConfiguration policy]
  G[management.address change] --> H[Updated agent target]
  G --> I[Unchanged rendered node configuration]
  I --> J[Production validation planner]
  J --> K[No node mutation]
Loading

Reviews (2): Last reviewed commit: "config: prove networking and target boun..." | Re-trigger Greptile

Comment thread internal/installer/configbundle/bundle_test.go Outdated
Comment thread cmd/katlctl/config_inspect_test.go
Address focused review by structurally asserting native kube-proxy and
cluster-networking preservation. Exercise the cluster apply planner to
prove a management-address-only edit changes the dial target while
rendering identical node state and submitting no mutation.
@Zariel
Zariel merged commit dc39825 into main Aug 5, 2026
6 checks passed
@Zariel
Zariel deleted the agent/networking-management-contract branch August 5, 2026 23:02
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.

1 participant