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

Set OpenAPI maxLength on enum fields #4048

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

cbandy
Copy link
Member

@cbandy cbandy commented Dec 9, 2024

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • Other

What is the current behavior (link to any open issues here)?

See: https://issue.k8s.io/119511

What is the new behavior (if this is a feature change)?

This helps old Kubernetes estimate reasonable costs for CEL validation rules.

@cbandy cbandy force-pushed the enum-validation-cost branch from e2aad93 to 49e9e56 Compare December 17, 2024 22:28
@tjmoore4

This comment was marked as resolved.

Makefile Outdated
@@ -52,6 +52,10 @@ get-pgmonitor:
cp -r '$(PGMONITOR_DIR)/postgres_exporter/common/.' '${QUERIES_CONFIG_DIR}'
cp '$(PGMONITOR_DIR)/postgres_exporter/linux/queries_backrest.yml' '${QUERIES_CONFIG_DIR}'

.PHONY: notes
notes: ## List known issues and future considerations
@command -v rg > /dev/null && rg '(BUGS|FIXME|NOTE|TODO)[(][^)]+[)]' || grep -Ern '(BUGS|FIXME|NOTE|TODO)[(][^)]+[)]' *
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 This is a nice way to keep track of these items.

@cbandy
Copy link
Member Author

cbandy commented Dec 20, 2024

If you can update this PR, that'd be great, otherwise I can put a PR together.

👍🏻 I'll rebase and add it.

This helps old Kubernetes estimate reasonable costs for CEL validation
rules.

See: https://issue.k8s.io/119511
@cbandy cbandy force-pushed the enum-validation-cost branch from 49e9e56 to 40a43fa Compare December 20, 2024 05:15
This surfaces the comment convention we inherited from godoc.
We use the parentheses to classify similar notes.

See: https://go.dev/blog/godoc
@cbandy cbandy force-pushed the enum-validation-cost branch from 40a43fa to 9e3118d Compare December 20, 2024 06:33
@cbandy cbandy merged commit f7caa61 into CrunchyData:main Dec 20, 2024
17 checks passed
@cbandy cbandy deleted the enum-validation-cost branch December 20, 2024 21:53
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.

2 participants