Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crd: add hosts max length #38

Merged
merged 1 commit into from
Mar 26, 2024
Merged

crd: add hosts max length #38

merged 1 commit into from
Mar 26, 2024

Conversation

AlexanderYastrebov
Copy link
Collaborator

controller-gen does not support validating internal list items on list types, see kubernetes-sigs/controller-tools#342

To add host pattern we used perl hack that is hard to extend to multiple validations.

Also #16 added optional tls spec that contains hosts field for which perl hack worked by accident, see #16 (comment)

This change replaces perl hack for a go hack and adds max length constraint.

controller-gen does not support validating internal list items on list types,
see kubernetes-sigs/controller-tools#342

To add host pattern we used perl hack that is hard to extend to multiple
validations.

Also #16 added optional tls spec that contains hosts field for which
perl hack worked by accident, see #16 (comment)

This change replaces perl hack for a go hack and adds max length constraint.

Signed-off-by: Alexander Yastrebov <[email protected]>
@szuecs
Copy link
Owner

szuecs commented Mar 26, 2024

👍

@szuecs szuecs merged commit 07b8995 into master Mar 26, 2024
2 checks passed
@szuecs szuecs deleted the crd-host-max-length branch March 26, 2024 14:03
@RomanZavodskikh
Copy link

👍

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