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

Support Starlib for Starlark runtime #1083

Closed
yhrn opened this issue Sep 29, 2020 · 1 comment · Fixed by GoogleContainerTools/kpt-functions-catalog#570
Closed

Support Starlib for Starlark runtime #1083

yhrn opened this issue Sep 29, 2020 · 1 comment · Fixed by GoogleContainerTools/kpt-functions-catalog#570
Assignees
Labels
area/fn-catalog Functions Catalog area/fn-sdk Typescript SDK enhancement New feature or request triaged Issue has been triaged by adding an `area/` label
Milestone

Comments

@yhrn
Copy link

yhrn commented Sep 29, 2020

I'm trying to write a Starlark Kpt function and realized I needed regex and md5 support. Starlib seems to have what I need but I can't load the modules:

load("re.star", "re")

just yields "error: load not implemented by this application".

Is this something you might consider supporting?

I'm sorry if this is already supported, I'm new to Starlark so I might be missing something.

@mortent mortent added area/hydrate area/fn-sdk Typescript SDK enhancement New feature or request triaged Issue has been triaged by adding an `area/` label labels Sep 29, 2020
@halvards
Copy link

I came across the same issue while trying to manipulate yaml in a block string (nested yaml) using Starlark.

Example: Set values in the data.mesh field in this ConfigMap: https://cloud.google.com/traffic-director/docs/set-up-gke-pods-auto#configuring_the_sidecar_injector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/fn-catalog Functions Catalog area/fn-sdk Typescript SDK enhancement New feature or request triaged Issue has been triaged by adding an `area/` label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants