AvitalTamir / cyphernetes

A Kubernetes Query Language
https://cyphernet.es
Apache License 2.0
527 stars 12 forks source link

Use IDENT for keys in node props #77

Closed AvitalTamir closed 1 month ago

AvitalTamir commented 2 months ago

Due to a historical mistake, keys in node properties are associated with JSONPATHs in the parser. They should actually be IDENTs since we only allow a single level (of either labels or name).

Slashes and dots must be legal. Labels often contain dots (.) and forward slashes (/). These are legal in Kubernetes and are common in the community (i.e. somecompany.com/status: "ok") - but are currently not parsed correctly by Cyphernetes.