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

KEP-5073: Runtime verification testing #2

Conversation

jpbetz
Copy link

@jpbetz jpbetz commented Feb 4, 2025

This was proposed to me by @deads2k.

I think it offers a good way to manage risk when Declarative Validation is rolled out to production clusters/fleets.

@jpbetz jpbetz force-pushed the runtime-sanity-check branch from 6543525 to 8778716 Compare February 4, 2025 16:53
@jpbetz jpbetz force-pushed the runtime-sanity-check branch from 8778716 to 0d03172 Compare February 4, 2025 16:57
@deads2k
Copy link

deads2k commented Feb 4, 2025

Thanks. This would give me a lot more confidence in deciding that generated validation is equivalent to handwritten validation with a release of "oops, let's put that back" being possible.

Copy link
Owner

@aaron-prindle aaron-prindle left a comment

Choose a reason for hiding this comment

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

+1 on adding runtime verification and the associated feature gate. LGTM! I'm fine with merging this as is I believe that there are a couple of other places to touch to include this new feature gate:

  • kep.yaml
  • a # of places where the feature gates for this KEP is mentioned in the KEP itself

I'm happy to merge this as is and update those areas as I go through and make additional changes from feedback on the KEP.

such that the presence of mismatches between declarative validation and hand written validation can
be safely checked against production workloads.

When a `DeclarativeValidationShadowMetrics` feature gate is enabled, the following will be collected for each validation operation:
Copy link
Owner

Choose a reason for hiding this comment

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

Talked offline, might make sense to update the name suggested there: DeclarativeValidationMismatchMetrics

@jpbetz
Copy link
Author

jpbetz commented Feb 4, 2025

Thanks @aaron-prindle. Feel free to merge into your PR and continue refinement there

@aaron-prindle aaron-prindle merged commit 3f616dd into aaron-prindle:declarative-validation-with-validation-gen Feb 4, 2025
aaron-prindle added a commit that referenced this pull request Feb 4, 2025
KEP-5073: Runtime verification testing
aaron-prindle added a commit that referenced this pull request Feb 14, 2025
…dation-gen (kubernetes#5074)

* KEP-5073: Declarative Validation of Kubernetes Native Types With validation-gen

* resolving KEP comments

* resolving KEP comments round #2

* resolving KEP comments round kubernetes#3

* update KEP-5073 to clarify migration details

* fix prototype link in a # of places

* Propose a runtime verification check

* Update TOC

* move runtime check section

* plumb DeclarativeValidationMismatchMetrics feature gate through KEP

* resolving KEP comments round kubernetes#4

* update reviewers and approvers

* resolving KEP comments round kubernetes#5

* resolving KEP comments round kubernetes#6

* remove recommended and unresovled from zero values + defaulting section

* fix metric name

---------

Co-authored-by: yongruilin <yongrlin@outlook.com>
Co-authored-by: Joe Betz <jpbetz@google.com>
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