File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package]
2
2
name = " web-service"
3
3
edition = " *"
4
- version = " 0.2 .0"
4
+ version = " 0.3 .0"
5
5
description = " `web-service` is a kcl abstraction package"
6
6
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ schema App:
4
4
replicas: int = 1
5
5
labels?: {str:str} = {app = name}
6
6
service?: Service
7
- containers? : {str: Container}
7
+ containers: {str: Container}
8
8
9
9
schema Service:
10
10
"""The service model."""
@@ -92,5 +92,14 @@ kubernetesRender = lambda a: App {
92
92
[deployment, if a.service: service]
93
93
}
94
94
95
- params: App = option("params")
95
+ params: App = option("params") or App {
96
+ name: "app"
97
+ containers.main = {
98
+ args = ["kcl", "run"]
99
+ image = "kcllang/kcl"
100
+ ports = [ContainerPort {
101
+ containerPort = 80
102
+ }]
103
+ }
104
+ }
96
105
items = kubernetesRender(params)
You can’t perform that action at this time.
0 commit comments