cuddly-jelly-27016
09/21/2023, 2:06 PMmkdir -p /tmp/flyte/pb_output \
&& pyflyte --pkgs '${FLYTE_PACKAGE}' serialize --image ${DOCKER_IMAGE_FQDN} fast workflows -f /tmp/flyte/pb_output \
&& flytectl register file -p ${FLYTE_PROJECT_NAME} -d ${FLYTE_DOMAIN} --version ${CONTAINER_TAG} --sourceUploadPath="${FLYTE_DISTRIBUTION_DIR}" /tmp/flyte/pb_output/* --admin.endpoint ${FLYTE_HOST}:443 \
We can see that pb files are produced using pyflyte command.
However, flytectl register command tries to upload the files to a default location, ignoring $FLYTE_DISTRIBUTION_DIR variabile which is set to a different value. (please have a look at the screenshot below)
Open PR to fix the missing header error: flyteorg/flytectl#422
Expected behavior
flytectl register file --sourceUploadPath should upload the pb files to configured storage.
Additional context to reproduce
No response
Screenshots
image▾
image▾