1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00

ISSUE-36166: Remove duplicated content

This commit is contained in:
Samantha Gidlow
2021-10-13 14:30:09 -04:00
parent 2456def29a
commit 7d1774635d

View File

@@ -17,19 +17,3 @@ $ make manifests
----
+
This Makefile target invokes the `controller-gen` utility to generate the CRD manifests in the `config/crd/bases/cache.example.com_memcacheds.yaml` file.
[id="osdk-golang-generate-crd-validation_{context}"]
== About OpenAPI validation
OpenAPIv3 schemas are added to CRD manifests in the `spec.validation` block when the manifests are generated. This validation block allows Kubernetes to validate the properties in a Memcached custom resource (CR) when it is created or updated.
Markers, or annotations, are available to configure validations for your API. These markers always have a `+kubebuilder:validation` prefix.
.Additional resources
* For more details on the usage of markers in API code, see the following Kubebuilder documentation:
** link:https://book.kubebuilder.io/reference/generating-crd.html[CRD generation]
** link:https://book.kubebuilder.io/reference/markers.html[Markers]
** link:https://book.kubebuilder.io/reference/markers/crd-validation.html[List of OpenAPIv3 validation markers]
* For more details about OpenAPIv3 validation schemas in CRDs, see the link:https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema[Kubernetes documentation].