Skip to content

Add label matching according to RFC 1123#43

Open
kiarashazarnia wants to merge 4 commits into
ypcrts:developfrom
kiarashazarnia:develop
Open

Add label matching according to RFC 1123#43
kiarashazarnia wants to merge 4 commits into
ypcrts:developfrom
kiarashazarnia:develop

Conversation

@kiarashazarnia

Copy link
Copy Markdown

This feature could be helpful to check the RFC 1123 Label standard.

One of the major use-cases is checking strings to be valid for Kubernetes Namespace.

Thanks for your attention. I hope it will be helpful for you folks.

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

There is a little typo.

Comment thread fqdn/__init__.py Outdated
Comment thread fqdn/__init__.py Outdated
@swaeberle

Copy link
Copy Markdown

I think this would be also helpful when validating a single hostname (without any domain) for RFC1123 conformance.

ypcrts and others added 3 commits March 4, 2025 20:19
Co-authored-by: Stephan Wurm <stephan.wurm@a-eberle.de>
Co-authored-by: Stephan Wurm <stephan.wurm@a-eberle.de>
@ypcrts

ypcrts commented Mar 5, 2025

Copy link
Copy Markdown
Owner

Thanks for building this. I like the new class for a label. The use case for k8s makes sense.

That said I'm a few years late reviewing this, so I wonder would this still be useful to you?

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