Skip to content

Commit 0c6b610

Browse files
committed
fix: e2e example test cases.
1 parent ae3e229 commit 0c6b610

File tree

33 files changed

+56
-42
lines changed

33 files changed

+56
-42
lines changed

cheatsheet/cheatsheet.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@
562562
\offset
563563

564564
\begin{lstlisting}
565-
# kcl -DbankCard=123 employee.k
565+
# kcl employee.k -D bankCard=123
566566
bankCard = option("bankCard")
567567

568568
# kcl main.k -D list_key='[1,2,3]' -D dict_key='{"key":"value"}'

docs/reference/lang/codelab/simple.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ service = "my-service"
419419
Run with KCL, we will see the generated data in yaml format as below:
420420

421421
```bash
422-
kcl -D priority=2 -D env=pre-prod my_config.k
422+
kcl my_config.k -D priority=2 -D env=pre-prod
423423
```
424424

425425
Stdout:
@@ -468,7 +468,7 @@ Run with KCL, we will see the generated data in yaml format as below:
468468
KCL command:
469469

470470
```bash
471-
kcl -D priority=2 -D env=pre-prod my_config.k
471+
kcl my_config.k -D priority=2 -D env=pre-prod
472472
```
473473

474474
Stdout:

docs/reference/lang/tour.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2888,7 +2888,7 @@ bankCard = option("bankCard") # Get bankCard through the option function.
28882888
Then we can use the module as below:
28892889

28902890
```bash
2891-
kcl -DbankCard=123 employee.k
2891+
kcl employee.k -D bankCard=123
28922892
```
28932893

28942894
Currently, supported types of top-level argument are number, string, bool, list and dict.

examples/abstraction/app.k

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ schema Container:
2424
args?: [str]
2525
env?: [Env]
2626
volumes?: [Volume]
27-
resources: Resource
27+
resources?: Resource
2828
ports: [ContainerPort]
2929

3030
schema ContainerPort:

examples/codelab/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test:
2+
make -C simple
3+
make -C schema
4+
make -C collaborative

examples/codelab/collaborative/makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ dev:
66

77
prod:
88
cd appops/test_app/prod && kcl -Y ./kcl.yaml
9+
10+
default:
11+
make base
12+
make dev
13+
make prod

examples/codelab/simple/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default:
2-
kcl -D priority=1 -D env=pre-prod my_config.k
2+
kcl my_config.k -D priority=1 -D env='pre-prod'
33

44
test:
5-
kcl -D priority=1 -D env=pre-prod my_config_test.k
5+
kcl my_config_test.k -D priority=1 -D env='pre-prod'

examples/kubernetes/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test:
2+
make -C generate-manifests
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
default:
2+
kcl main.k -Y kcl.yaml

examples/package-management/git/my_package/main.k

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import konfig.base.pkg.k8spkg.api.apps.v1 as apps
1+
import konfig.base.pkg.kusion_kubernetes.api.apps.v1 as apps
22

33
apps.Deployment {
44
metadata.name = "nginx-deployment"

0 commit comments

Comments
 (0)