diff --git a/README.md b/README.md index bfc2d22..c373fc1 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,11 @@ class Hello(BaseTask): ## Changelog -### Version 25.3.0 +### Version 26.1.0 #### 🛠️ Enhancements -- **Added support** for the `lookup` functionality in task fields, allowing dynamic population of field values based on runtime data or external sources. +- **Added support** for skipping SSL verification in legacy clusters. --- diff --git a/digitalai/release/integration/k8s.py b/digitalai/release/integration/k8s.py index 6aff685..a89761e 100644 --- a/digitalai/release/integration/k8s.py +++ b/digitalai/release/integration/k8s.py @@ -1,3 +1,4 @@ +import os import threading from kubernetes import client, config @@ -27,7 +28,15 @@ def get_client(): except Exception: dai_logger.exception("Failed to load any Kubernetes config") raise RuntimeError("Could not configure Kubernetes client") - kubernetes_client = client.CoreV1Api() + + # Check if SSL verification should be disabled (for legacy clusters) + if os.getenv('SKIP_TLS_LEGACY_K8S', 'false').lower() == 'true': + configuration = client.Configuration.get_default_copy() + configuration.verify_ssl = False + kubernetes_client = client.CoreV1Api(client.ApiClient(configuration)) + dai_logger.info("Kubernetes TLS certificate verification disabled") + else: + kubernetes_client = client.CoreV1Api() #dai_logger.info("Kubernetes client created successfully") return kubernetes_client diff --git a/pyproject.toml b/pyproject.toml index 7876f98..77c080b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ packages = ["digitalai"] [project] name = "digitalai_release_sdk" -version = "25.3.0" +version = "26.1.0" authors = [ { name="Digital.ai", email="pypi-devops@digital.ai" }, ]