From 4465018c159b6a8a22eab1157676ee7051edd81c Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Sat, 15 Mar 2025 10:40:16 +0800 Subject: [PATCH] Refactor prefix option handling in main.k for improved default value assignment --- main.k | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.k b/main.k index a51b5bc..d394ebb 100644 --- a/main.k +++ b/main.k @@ -29,7 +29,7 @@ http = base.HTTPService { domain = prefix + "nginxxx.ve.suyiiyii.top" } -prefix = option(prefix, "str", False, "") +prefix = option("prefix") or "prefix" deploys = sum([base.appRender(a) for a in apps], []) apps_manifests = [base.envInjector(envs, deploy) for deploy in deploys] @@ -39,4 +39,3 @@ ingresses = [base.httpServiceRefine(http)] env_manifests = [base.envSecretRender(a) for a in base.Envs.instances()] # base.appRender(a) manifests.yaml_stream([apps_manifests, env_manifests, ingresses, base.issuer]) -# print(prefix)