Skip to content

feat: add reconciliation for node labels and taints in Talos cluster initialization - #69

Merged
havardelnan merged 9 commits into
mainfrom
feature/add-taints-and-labels-to-nodes
Oct 20, 2026
Merged

havardelnan merged 9 commits into
mainfrom
feature/add-taints-and-labels-to-nodes

Conversation

@havardelnan

Copy link
Copy Markdown
Contributor

No description provided.

@havardelnan
havardelnan force-pushed the feature/add-taints-and-labels-to-nodes branch from d30511a to e6c945e Compare October 19, 2026 11:17
@havardelnan havardelnan changed the title fix: update golang image version to 1.27 in devcontainer configuration feat: add reconciliation for node labels and taints in Talos cluster initialization Oct 19, 2026
@havardelnan
havardelnan requested a balanced review from Copilot October 19, 2026 11:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Bootstrap taints can persist after removal, and reconciliation ordering causes avoidable resourceVersion conflicts.

2 open issues
What changed in this PR

Adds topology-driven Node label and taint reconciliation to Talos cluster initialization.

Changes:

  • Registers worker taints during initial kubelet configuration.
  • Reconciles labels and taints while tracking operator ownership.
  • Adds tests for desired metadata and reconciliation behavior.
File Description
internal/​services/​talosconfigservice/​talos_config_service.go Applies bootstrap taints; removes deprecated annotation helper.
internal/​services/​talosconfigservice/​node_labels_taints.go Extracts desired labels and taints and builds registration patches.
internal/​services/​talosconfigservice/​node_labels_taints_test.go Tests topology extraction and patch generation.
internal/​kubernetescluster/​talos/​reconcile_node_labels_taints.go Adds ownership-aware Node reconciliation.
internal/​kubernetescluster/​talos/​reconcile_node_labels_taints_test.go Tests additions, removals, and ownership handling.
internal/​kubernetescluster/​talos/​cluster_init.go Integrates label and taint reconciliation.

Review effort: Balanced

@havardelnan havardelnan self-assigned this Oct 19, 2026
@havardelnan
havardelnan requested a review from rodafr October 19, 2026 20:25

@rodafr rodafr 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.

lgtm

@havardelnan
havardelnan merged commit e8d832e into main Oct 20, 2026
4 checks passed
@havardelnan
havardelnan deleted the feature/add-taints-and-labels-to-nodes branch October 20, 2026 07:36
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.

4 participants