Skip to content

Commit e298cd7

Browse files
aaron-prindleyongruilinjpbetz
authored andcommitted
KEP-5073: Declarative Validation of Kubernetes Native Types With validation-gen (kubernetes#5074)
* KEP-5073: Declarative Validation of Kubernetes Native Types With validation-gen * resolving KEP comments * resolving KEP comments round kubernetes#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 <[email protected]> Co-authored-by: Joe Betz <[email protected]>
1 parent 061414c commit e298cd7

File tree

6 files changed

+1345
-1
lines changed

6 files changed

+1345
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kep-number: 5073
2+
alpha:
3+
approver: "@jpbetz"
4+
beta:
5+
approver: "@jpbetz"

keps/sig-api-machinery/4153-declarative-validation/kep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors:
44
- "@alexzielenski"
55
- "@jpbetz"
66
owning-sig: sig-api-machinery
7-
status: implementable
7+
status: superseded
88
creation-date: 2023-08-20
99
reviewers:
1010
- apelisse

keps/sig-api-machinery/5073-declarative-validation-with-validation-gen/README.md

+1,285
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
title: Declarative Validation
2+
kep-number: 5073
3+
authors:
4+
- "@aprindle"
5+
- "@yongruilin"
6+
- "@jpbetz"
7+
owning-sig: sig-api-machinery
8+
status: implementable
9+
creation-date: 2024-01-21
10+
reviewers:
11+
- deads2k
12+
- msau42
13+
- thockin
14+
approvers:
15+
- deads2k
16+
17+
see-also:
18+
- "/keps/sig-api-machinery/4153-declarative-validation"
19+
20+
# The target maturity stage in the current dev cycle for this KEP.
21+
stage: beta
22+
23+
# The most recent milestone for which work toward delivery of this KEP has been
24+
# done. This can be the current (upcoming) milestone, if it is being actively
25+
# worked on.
26+
latest-milestone: "v1.33"
27+
28+
# The milestone at which this feature was, or is targeted to be, at each stage.
29+
milestone:
30+
alpha: "v1.33"
31+
beta: "v1.33"
32+
33+
# The following PRR answers are required at alpha release
34+
# List the feature gate name and the components for which it must be enabled
35+
feature-gates:
36+
# Switches apiserver to use declarative validation generated validation code
37+
# instead of handwritten wherever possible
38+
- name: DeclarativeValidation
39+
components:
40+
- kube-apiserver
41+
# Adds logic to apiserver to run declarative validation and handwritten validation
42+
# while not modifying actual validation path but only outputting any mismatch information as a metric
43+
- name: DeclarativeValidationMismatchMode
44+
components:
45+
- kube-apiserver
46+
disable-supported: true
47+
48+
# The following PRR answers are required at beta release
49+
metrics:
50+
# declarative-validatoin-mismatch tracks the number of mismatched valdation results and errors
51+
# when comparing the outputs of hand-written validations vs declarative validations
52+
- declarative-validation-mismatch

keps/sig-api-machinery/5073-declarative-validation-with-validation-gen/metadata-name-types.svg

+1
Loading

keps/sig-api-machinery/5073-declarative-validation-with-validation-gen/validation-types.svg

+1
Loading

0 commit comments

Comments
 (0)