-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow configurable tag name overrides in native types (#1009)
Allowing tags other than "cel" enables more flexibility, particularly when the types in question aren't owned by those configuring the CEL environment. The main use-case for this is enabling an experience in CEL that matches the shape of an object in JSON (or YAML). This includes: - Property casing: 'Property' in Go would likely be 'property' in JSON/YAML. - Embedded structures: metav1.ObjectType `json:"metadata,omitempty"` is common on Kuberentes resources, allowing users to request CEL use the JSON tags enables access via the ".metadata" property even though there is no such property on the actual Native type.
- Loading branch information
Showing
2 changed files
with
215 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.