<#1658 Explicitly set the content type for flyte d...
# flyte-github
a
#1658 Explicitly set the content type for flyte deck Pull request opened by pingsutw TL;DR Sometimes s3 or gcs will set the content type to
application/octet-stream
. In this pr, we explicitly set the type, so flyteconsole can render flyte deck properly. Type ☑︎ Bug Fix ☐ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☑︎ Smoke tested ☐ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description
Copy code
from flytekit import task, workflow
from flytekit.image_spec import ImageSpec


new_flytekit = "git+<https://github.com/flyteorg/flytekit@e199d01b44042a19a6f18b7942150b02dac24e01>"

python_image = ImageSpec(
    registry="pingsutw",
    apt_packages=["git"],
    packages=[new_flytekit],
)


@task(container_image=python_image, disable_deck=False)
def t1():
    print("t1")


@workflow()
def wf():
    t1()


if __name__ == '__main__':
    wf()
Tracking Issue https://unionai.slack.com/archives/C02CMUNT4PQ/p1684943237121539 Follow-up issue NA flyteorg/flytekit Codecov: 71.00% (-0.02%) compared to eafcc82 Codecov: 43.75% of diff hit (target 71.01%) 28 other checks have passed 28/30 successful checks