Skip to content

Conversation

@aschumann-virtualcable
Copy link
Contributor

This pull request updates the VM name sanitization logic in the OpenShift provider to align with OpenShift's allowed character set, and adjusts the related test cases accordingly. The main change is to simplify the sanitization rules to only replace unsupported characters with hyphens and ensure lowercase, which also affects the expected outputs of the tests.

Sanitization logic update:

  • Updated the sanitized_name method in server/src/uds/services/OpenShift/provider.py to only allow [a-zA-Z0-9_-] characters, replacing any unsupported character with a hyphen and converting the result to lowercase, limited to 63 characters.

Test adjustments:

  • Modified test cases in server/tests/services/openshift/test_provider.py to reflect the new sanitization behavior, updating expected outputs to match the revised logic for handling unsupported characters and truncation.

@github-actions github-actions bot requested a review from dkmstr November 11, 2025 16:00
@dkmstr dkmstr merged commit d19086e into master Nov 11, 2025
6 of 9 checks passed
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