Conversion of underscores to hyphens in kpt function image names is confusing #2533
Labels
area/fn-sdk
Typescript SDK
bug
Something isn't working
triaged
Issue has been triaged by adding an `area/` label
Expected behavior
This runs a function after locally building it:
$ kpt fn eval . --exec "node dist/my_func_run.js"
Then I want to push the function:
export npm_package_kpt_docker_repo_base="${REGISTRY}/${PROJECT}/${REPOSITORY}"
npm run kpt:docker-build -- --tag=latest
npm run kpt:docker-push -- --tag=latest
I would expect this to work:
$ kpt fn eval . --image "${REGISTRY}/${PROJECT}/${REPOSITORY}/my_func:latest"
Actual behavior
$ kpt fn eval . --image "${REGISTRY}/${PROJECT}/${REPOSITORY}/my_func:latest"
Doesn't find the function. The image is named my-func. This shown by the documentation, but it doesn't mention the conversion of underscores to hyphens.
Steps to reproduce the behavior
I followed https://kpt.dev/sdk/ts-guide
cc @justinsb
The text was updated successfully, but these errors were encountered: