From bb4c99d9b7ed0720be0807d10efcb628261aa606 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Fri, 14 Mar 2025 21:51:08 +0800 Subject: [PATCH] Add HTTPService configuration and include ingresses in manifest output --- main.k | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.k b/main.k index 28cf375..516ee85 100644 --- a/main.k +++ b/main.k @@ -24,15 +24,17 @@ envs = base.Envs { } } -https = base.HTTPService { +http = base.HTTPService { service = "nginxxx" - domain = "nginxxx.suyiiyii.top" + domain = "nginxxx.ve.suyiiyii.top" } deploys = sum([base.appRender(a) for a in apps], []) -# print(yaml.encode(deploys)) + apps_manifests = [base.envInjector(envs, deploy) for deploy in deploys] +ingresses = [base.httpServiceRender(http)] + env_manifests = [base.envSecretRender(a) for a in base.Envs.instances()] # base.appRender(a) -manifests.yaml_stream([apps_manifests, env_manifests]) +manifests.yaml_stream([apps_manifests, env_manifests, ingresses])