Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEL support for navigating the resource list #678

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnbelamaric
Copy link
Member

Initial support for navigating the resource list and pulling out values using CEL.

This is a building block for kptdev/kpt#3964, but can be used directly by functions to interpret CEL-expression based inputs even if we do not yet implement that generally.

@johnbelamaric
Copy link
Member Author

@justinsb fyi, we discussed CEL the other day with respect to kptdev/kpt#3964

@johnbelamaric
Copy link
Member Author

So, I guess it's not clear immediately what this does. It enables us to use CEL to navigate the entire list of resources. It basically eliminates the need for apply replacements, likely in almost all cases, and the Starlark functions used in the value propagation pattern - if we plumb it into function inputs. For example, I can write items.with_apiVersion("v1").with_name("example2").with_kind("Namespace").metadata.annotations["foo"] as an expression, rather than using the apply replacements functions to copy that value into a config map and then use that for inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant