<#1705 add private registry support> Pull request ...
# flyte-github
a
#1705 add private registry support Pull request opened by RichhLi TL;DR Add support for pushing/pulling from private registries when using ImageSpec. I submitted a pr to envd devs that enabled this feature: tensorchord/envd#1680 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 Example:
Copy code
from flytekit import task, workflow, ImageSpec

image_spec = ImageSpec(packages=["numpy"], base_image="private_base_image", registry="private_registry", registry_config="registry_config.json")

@task(container_image=image_spec)
def t1() -> str:
    import numpy as np
    print("task 1")
    print(np.array([1,2,3]))
    return("blah1")

@workflow
def wf():
    t1()
Tracking Issue NA Follow-up issue NA flyteorg/flytekit All checks have passed 30/30 successful checks