Skip to content

Conversation

johnbelamaric
Copy link

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
Author

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

@johnbelamaric
Copy link
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

Development

Successfully merging this pull request may close these issues.

1 participant