From 40ddcd222b9664a3eae46109135bc698532684ff Mon Sep 17 00:00:00 2001 From: peefy Date: Sat, 9 Mar 2024 21:40:47 +0800 Subject: [PATCH] fix: flask demo examples Signed-off-by: peefy --- kcl.mod | 5 +++++ kcl.yaml | 4 ---- kubernetes_render.k | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 kcl.yaml diff --git a/kcl.mod b/kcl.mod index c51d42c..4cfc3cf 100644 --- a/kcl.mod +++ b/kcl.mod @@ -1,2 +1,7 @@ [package] +name = "flask_manifests" +version = "0.0.1" + +[profile] +entries = ["main.k", "kubernetes_render.k"] diff --git a/kcl.yaml b/kcl.yaml deleted file mode 100644 index 7ed23d3..0000000 --- a/kcl.yaml +++ /dev/null @@ -1,4 +0,0 @@ -kcl_cli_configs: - files: - - main.k - - kubernetes_render.k diff --git a/kubernetes_render.k b/kubernetes_render.k index 522a5e8..3eedad4 100644 --- a/kubernetes_render.k +++ b/kubernetes_render.k @@ -17,7 +17,7 @@ kubernetesRender = lambda a: app.App { template.metadata.labels = a.labels template.spec.containers = [ { - name = name + name = n image = c.image command = c.command args = c.args @@ -25,7 +25,7 @@ kubernetesRender = lambda a: app.App { volumeMounts = c.volumes resources: c.resources ports = c.ports - } for name, c in a.containers + } for n, c in a.containers ] } }