Skip to content

fix: add control-plane label to topology metadata#1056

Open
Rico Lin (ricolin) wants to merge 3 commits into
mainfrom
codex/control-plane-label
Open

fix: add control-plane label to topology metadata#1056
Rico Lin (ricolin) wants to merge 3 commits into
mainfrom
codex/control-plane-label

Conversation

@ricolin

@ricolin Rico Lin (ricolin) commented May 28, 2026

Copy link
Copy Markdown
Member

Summary

  • add the modern node-role.kubernetes.io/control-plane label to Cluster API control-plane topology metadata
  • keep the existing legacy node-role.kubernetes.io/master label for compatibility
  • add unit coverage that the rendered control-plane labels match the OpenStack CCM node selector expectation

Validation

  • uv run ruff check magnum_cluster_api/resources.py magnum_cluster_api/tests/unit/test_resources.py
  • uv run pytest magnum_cluster_api/tests/unit/test_resources.py::test_cluster_control_plane_labels_match_cloud_controller_manager
  • uv run pytest magnum_cluster_api/tests/unit/test_resources.py

Render both the legacy master label and the modern control-plane label on control-plane topology metadata so the OpenStack CCM nodeSelector can match the generated control-plane node.

Assisted-By: Codex <noreply@openai.com>
Signed-off-by: Rico Lin <rlin@vexxhost.com>
@ricolin Rico Lin (ricolin) force-pushed the codex/control-plane-label branch 2 times, most recently from 8bb8cf4 to a5c313e Compare June 16, 2026 00:39
@ricolin Rico Lin (ricolin) marked this pull request as ready for review June 18, 2026 00:16
Format the new control-plane label unit test with black.

Signed-off-by: Rico Lin <rlin@vexxhost.com>
Assisted-By: Codex <noreply@openai.com>
@ricolin Rico Lin (ricolin) force-pushed the codex/control-plane-label branch from 557b3da to 2b4e09b Compare June 18, 2026 00:54
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