Skip to content

Commit 4f2a5b8

Browse files
committed
switch to value limit in code points
1 parent 6fa29a4 commit 4f2a5b8

File tree

1 file changed

+3
-1
lines changed
  • keps/sig-multicluster/2149-clusterid

1 file changed

+3
-1
lines changed

keps/sig-multicluster/2149-clusterid/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,12 @@ _For example, [CAPN's virtualcluster project](https://github.com/kubernetes-sigs
300300
The `ClusterProperty` resource provides a way to store identification related, cluster scoped information for multi-cluster tools while creating flexibility for implementations. A cluster may have multiple `ClusterProperty`s, each holding a different identification related value. Each property contains the following information:
301301

302302
* **Name** - a well known or custom name to identify the property.
303-
* **Value** - a property-dependent string, up to 128 KB.
303+
* **Value** - a property-dependent string, up 128k Unicode code points (see _Note_).
304304

305305
The schema for `ClusterProperty` is intentionally loose to support multiple forms of information, including arbitrary additional identification related properties described by users (see "Additional Properties", below), but certain well-known properties will add additional schema constraints, such as those described in the next section.
306306

307+
_Note: While prior Kubernetes API constructs containing arbitrary string values, such as annotations, are limited by a byte length, the OpenAPI validation this CRD depends on defines string length as Unicode code points at validation time. The encoded length of the string in bytes as observed on input or output by the user may vary depending on which of the valid JSON encodings are used (UTF-8, UTF-16, or UTF-32). Therefore, the value limit of 128k code points could take up to 512KB using the least space efficient allowable encoding, UTF-32, which uses 4 bytes per code point._
308+
307309

308310
### Well known properties
309311

0 commit comments

Comments
 (0)