Skip to content

Commit 9c6d4dc

Browse files
authored
Merge pull request #120 from Peefy/fix-kcl-080-loop-var
fix: loop variable in kcl v0.8
2 parents 9709236 + 661c070 commit 9c6d4dc

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

kcl-abstraction-example/kcl.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
22
name = "kcl-abstraction-example"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "`kcl-abstraction-example` is the KCL abstraction example."
55

kcl-abstraction-example/kubernetes_render.k

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ kubernetesRender = lambda a: app.App {
1616
template.metadata.labels = a.labels
1717
template.spec.containers = [
1818
{
19-
name = name
19+
name = n
2020
image = c.image
2121
command = c.command
2222
args = c.args
2323
env = c.env
2424
volumeMounts = c.volumes
2525
resources: c.resources
2626
ports = c.ports
27-
} for name, c in a.containers
27+
} for n, c in a.containers
2828
]
2929
}
3030
}

kcl-playground/kcl.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kcl-playground"
33
edition = "*"
4-
version = "0.1.0"
4+
version = "0.2.0"
55
description = "`kcl-playground` is the kcl playground Kubernetes manifests"
66

kcl-playground/main.k

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ kubernetesRender = lambda a: App {
6666
template.metadata.labels = a.labels
6767
template.spec.containers = [
6868
{
69-
name = name
69+
name = n
7070
image = c.image
7171
command = c.command
7272
args = c.args
7373
env = c.env
7474
volumeMounts = c.volumes
7575
resources: c.resources
7676
ports = c.ports
77-
} for name, c in a.containers
77+
} for n, c in a.containers
7878
]
7979
}
8080
}

web-service/kcl.mod

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
name = "web-service"
33
edition = "*"
4-
version = "0.1.0"
4+
version = "0.2.0"
55
description = "`web-service` is a kcl abstraction package"
6+

web-service/kcl.mod.lock

Whitespace-only changes.

web-service/main.k

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ kubernetesRender = lambda a: App {
6464
template.metadata.labels = a.labels
6565
template.spec.containers = [
6666
{
67-
name = name
67+
name = n
6868
image = c.image
6969
command = c.command
7070
args = c.args
7171
env = c.env
7272
volumeMounts = c.volumes
7373
resources: c.resources
7474
ports = c.ports
75-
} for name, c in a.containers
75+
} for n, c in a.containers
7676
]
7777
}
7878
}

0 commit comments

Comments
 (0)