Skip to content

Restore cluster name field - #395

Merged
abatallas merged 2 commits into
mainfrom
abatallas/restore_cluster_name_field
Jul 24, 2026
Merged

Restore cluster name field#395
abatallas merged 2 commits into
mainfrom
abatallas/restore_cluster_name_field

Conversation

@abatallas

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

This PR restores an explicit Cluster name input in the Azure Create UI Definition and aligns cluster-name character handling across the UI and deployment template logic.

Changes:

  • Reintroduced a visible clusterName textbox in createUiDefinition.json with updated validation rules and messages.
  • Added pytest coverage to ensure the UI’s clusterName regex validations accept/reject expected values.
  • Updated Bicep cluster-name sanitization to remove _ from the accepted character set and coerce invalid characters to -.

Reviewed changes

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

File Description
uidefinitions/createUiDefinition.json Restores and validates a visible clusterName field; updates VM name tooltip text.
tests/test_create_ui_regexes.py Adds tests that load and enforce the clusterName regex validations from the UI definition JSON.
bicep/ccw.bicep Adjusts cluster-name sanitization (accepted characters and replacement behavior) and outputs the sanitized value.

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

Comment thread bicep/ccw.bicep
Comment thread bicep/ccw.bicep Outdated
@abatallas
abatallas force-pushed the abatallas/restore_cluster_name_field branch from a089f29 to ac0aad8 Compare July 23, 2026 19:07
@abatallas
abatallas merged commit 83d9a64 into main Jul 24, 2026
2 checks passed
@abatallas
abatallas deleted the abatallas/restore_cluster_name_field branch July 24, 2026 17:06
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