From 48c4f366b741faa145d2daec83cbbd0df2966fe7 Mon Sep 17 00:00:00 2001 From: Joshua Seals <117867292+joshua-seals@users.noreply.github.com> Date: Mon, 14 Aug 2023 08:18:54 -0400 Subject: [PATCH 1/3] Update dependabot.yml --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d137789..bf68216 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,7 +13,7 @@ updates: - package-ecosystem: "pip" directory: "/tycho" schedule: - interval: "weekly" + interval: "monthly" reviewers: - "joshua-seals" - "Hoid" From 57a127cd5ab9f5599d45483563d00ed2f381a71e Mon Sep 17 00:00:00 2001 From: PJ Linebaugh Date: Tue, 26 Sep 2023 15:04:24 -0400 Subject: [PATCH 2/3] add feature to specify the init container image and tag --- tycho/model.py | 2 ++ tycho/template/pod.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tycho/model.py b/tycho/model.py index 92ca182..b614576 100644 --- a/tycho/model.py +++ b/tycho/model.py @@ -236,6 +236,8 @@ def __init__(self, config, name, principal, service_account, conn_string, proxy_ """init security context""" self.init_security_context = init_security_context """Resources and limits for the init container""" + self.init_image_repository = os.environ.get("TYCHO_APP_INIT_IMAGE_REPOSITORY", "busybox") + self.init_image_tag = os.environ.get("TYCHO_APP_INIT_IMAGE_TAG", "latest") self.init_cpus = os.environ.get("TYCHO_APP_INIT_CPUS", "250m") self.init_memory = os.environ.get("TYCHO_APP_INIT_MEMORY", "250Mi") self.gpu_resource_name = os.environ.get("TYCHO_APP_GPU_RESOURCE_NAME", "nvidia.com/gpu") diff --git a/tycho/template/pod.yaml b/tycho/template/pod.yaml index 636a1c6..d54e8f3 100644 --- a/tycho/template/pod.yaml +++ b/tycho/template/pod.yaml @@ -48,7 +48,7 @@ spec: {% if (system.enable_init_container == "true") and (system.create_home_dirs == "true") and (system.dev_phase != "test") %} initContainers: - name: volume-tasks - image: busybox:1.28 + image: {{ system.init_image_repository }}:{{ system.init_image_tag }} {% if system.init_security_context.run_as_user or system.init_security_context.run_as_group %} securityContext: {% if system.init_security_context.run_as_user %} From 34fa6cc403a386b306acc0a16df152cbecc55e3f Mon Sep 17 00:00:00 2001 From: PJ Linebaugh Date: Tue, 26 Sep 2023 17:17:37 -0400 Subject: [PATCH 3/3] update version to 1.15.0 --- tycho/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tycho/__init__.py b/tycho/__init__.py index ffeef94..57d0a1b 100644 --- a/tycho/__init__.py +++ b/tycho/__init__.py @@ -1 +1 @@ -VERSION = "1.14.1" +VERSION = "1.15.0"