mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-28 10:08:23 +00:00
We plan to add more formats in upcoming releases. This tracks which formats are introduced at a version. Unrecognized formats remain ignored. That is, if a format is not supported at the emulated version, the format is not enforced. This differs from typical field handling, where unsupported field values are forbidden. This is pre-existing behavior and is in compliance with JSON Schema's format handling. Ratcheting of custom resources helps with the introduction of new formats. When a cluster is upgraded to a version of Kubernetes that supports a format already set (but not enforced) in a custom resource definition, the format will start being enforced against custom resources. Ratcheting will tolerate unchanged values of custom resources, even if the value is not valid according to the format.