<#347 Introduce _U_INSECURE env var> Pull request ...
# flyte-github
a
#347 Introduce _U_INSECURE env var Pull request opened by pingsutw This pull request enhances the
init_in_cluster
initialization logic to support explicit insecure connection overrides via an environment variable, and adds comprehensive tests to ensure correct behavior for various endpoint and insecure configurations. Enhancements to insecure connection handling: • Added support for the
_U_INSECURE
environment variable in
init_in_cluster
to explicitly override insecure connection detection logic. If set, this variable determines the value of the
insecure
parameter regardless of endpoint auto-detection. [1] [2] Testing improvements: • Introduced a new test class
TestInitInCluster
in
test_initialize.py
to verify the behavior of
init_in_cluster
under different combinations of endpoints and insecure settings, including environment variable overrides. • Added tests to ensure that insecure auto-detection works for docker/localhost endpoints and that the
_U_INSECURE
environment variable always takes precedence when set. • Updated imports in the test suite to include
init_in_cluster
. flyteorg/flyte-sdk