Skip to content

Commit

Permalink
fix: flask demo examples
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Mar 9, 2024
1 parent c63dc83 commit 40ddcd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions kcl.mod
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
[package]
name = "flask_manifests"
version = "0.0.1"

[profile]
entries = ["main.k", "kubernetes_render.k"]

4 changes: 0 additions & 4 deletions kcl.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions kubernetes_render.k
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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
env = c.env
volumeMounts = c.volumes
resources: c.resources
ports = c.ports
} for name, c in a.containers
} for n, c in a.containers
]
}
}
Expand Down

0 comments on commit 40ddcd2

Please sign in to comment.