Skip to content

Commit 401fee6

Browse files
committed
Update LKE API docs to reflect actual behavior.
LKE does not impose ASCII-only restrictions on the label name. The only restrictions on the label are length and JSON validity.
1 parent 7a6ec79 commit 401fee6

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

openapi.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15933,14 +15933,19 @@ components:
1593315933

1593415934
Labels have the following constraints:
1593515935

15936-
* Must start with an alpha character
15937-
* Must only consist of alphanumeric characters and dashes (`-`)
15938-
* Must not contain two dashes in a row
15939-
minLength: 3
15936+
* UTF-8 characters will be returned by the API using escape
15937+
sequences of their Unicode code points. As an example, the
15938+
Japanese character 'か' is 3 bytes in UTF-8 (0xE382AB). Its
15939+
Unicode code point is 2 bytes (0x30AB). APIv4 supports this
15940+
character and the API will return it as the escape sequence
15941+
using six 1 byte characters which represent 2 bytes of Unicode
15942+
code point ("\u30ab").
15943+
* 4 byte UTF-8 characters are not supported.
15944+
* If the label is entirely composed of UTF-8 characters, the API
15945+
response will return the code points using up to 193 1 byte
15946+
characters.
15947+
minLength: 1
1594015948
maxLength: 32
15941-
# Kubernetes does NOT allow underscores in resource names and we are
15942-
# passing this name to Kubernetes. Thus the following pattern:
15943-
pattern: '[a-zA-Z0-9-]{3, 32}'
1594415949
example: lkecluster12345
1594515950
region:
1594615951
type: string

0 commit comments

Comments
 (0)