Skip to content

Commit 145a3c0

Browse files
authored
Merge pull request #51978 from aaron-prindle/declarative-validation-tag-reference
docs: add declarative validation tag reference documentation and link doc in appropriate places
2 parents 60f6435 + f34c970 commit 145a3c0

File tree

3 files changed

+674
-1
lines changed

3 files changed

+674
-1
lines changed

content/en/docs/reference/using-api/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ Kubernetes stores its serialized state in terms of the API resources by writing
130130
- Learn more about [API conventions](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#api-conventions)
131131
- Read the design documentation for
132132
[aggregator](https://git.k8s.io/design-proposals-archive/api-machinery/aggregated-api-servers.md)
133+
- Learn about [Declarative API Validation](/docs/reference/using-api/declarative-validation/).

content/en/docs/reference/using-api/api-concepts.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,11 @@ a boolean flag.
10111011

10121012
{{< /note >}}
10131013

1014+
Starting from v1.33, Kubernetes (including v{{< skew currentVersion>}}) offers a way to define field validations using _declarative tags_.
1015+
This is useful for people contributing to Kubernetes itself, and it's also relevant if you're
1016+
writing your own API using Kubernetes libraries.
1017+
To learn more, see [Declarative API Validation](/docs/reference/using-api/declarative-validation/).
1018+
10141019
## Dry-run
10151020

10161021
{{< feature-state feature_gate_name="DryRun" >}}

0 commit comments

Comments
 (0)