Skip to content

feat: add node annotation reconciliation to synchronize cluster specifications - #45

Merged
havardelnan merged 10 commits into
mainfrom
feature/reconcile-node-annotations
May 8, 2026
Merged

havardelnan merged 10 commits into
mainfrom
feature/reconcile-node-annotations

Conversation

@havardelnan

Copy link
Copy Markdown
Contributor

No description provided.

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.

Pull request overview

Adds a reconciliation step to keep workload-cluster Node annotations synchronized with the current KubernetesCluster/Machine specs (useful when metadata like project/environment/region changes after initial provisioning).

Changes:

  • Introduces reconcileNodeAnnotations to compute desired vitistack annotations per node and patch drift via the workload cluster API.
  • Adds helpers to build desired annotations, compute per-node patches, and derive datacenter/network/infrastructure values.
  • Hooks the new reconciliation into the “already initialized” (steady-state) path of cluster initialization.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
internal/kubernetescluster/talos/reconcile_node_annotations.go New node-annotation reconciliation logic + helper functions for desired state and patching.
internal/kubernetescluster/talos/cluster_init.go Calls node-annotation reconciliation during steady-state reconciliation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@havardelnan
havardelnan requested a review from rogerwesterbo May 8, 2026 07:08
@havardelnan
havardelnan merged commit a4cd049 into main May 8, 2026
4 checks passed
@havardelnan
havardelnan deleted the feature/reconcile-node-annotations branch May 8, 2026 12:41
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.

3 participants