Skip to content

Commit e12c04c

Browse files
committed
chore: update example codes
Signed-off-by: Peefy <[email protected]>
1 parent ccc218b commit e12c04c

File tree

9 files changed

+14
-22
lines changed

9 files changed

+14
-22
lines changed

docs/user_docs/guides/package-management/3-quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You can then add a dependency to the current kcl package using the `kcl mod add`
3939
As shown below, taking the example of adding a package dependency named `k8s`, the version of the package is `1.28`.
4040

4141
```shell
42-
kcl mod add k8s:1.28
42+
kcl mod add k8s:1.28.1
4343
```
4444

4545
You can see that `kcl` adds the dependency you just added to kcl.mod.
@@ -51,7 +51,7 @@ edition = "0.0.1"
5151
version = "0.0.1"
5252

5353
[dependencies]
54-
k8s = "1.28" # The dependency 'k8s' with version '1.28'
54+
k8s = "1.28.1" # The dependency 'k8s' with version '1.28.1'
5555
```
5656

5757
### Write a kcl program that uses the content in `k8s`

examples/kubernetes/from-kubernetes/kcl.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ edition = "v0.10.0"
44
version = "0.0.1"
55

66
[dependencies]
7-
crd = { path = "./models" }
7+
crd = { path = "./models" }

examples/kubernetes/generate-manifests/my-module/kcl.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ edition = "0.0.1"
44
version = "0.0.1"
55

66
[dependencies]
7-
k8s = "1.28"
7+
k8s = "1.28.1"
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
[dependencies]
22
[dependencies.k8s]
33
name = "k8s"
4-
full_name = "k8s_1.28"
5-
version = "1.28"
6-
sum = "aTxPUVZyr9MdiB3YdiY/8pCh9sC55yURnZdGlJsKG6Q="
7-
reg = "ghcr.io"
8-
repo = "kcl-lang/k8s"
9-
oci_tag = "1.28"
4+
full_name = "k8s_1.28.1"
5+
version = "1.28.1"

examples/kubevela/kcl-play-svc/kcl.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ version = "0.0.1"
55

66
[dependencies]
77
oam = "0.1.0"
8-
k8s = "1.28"
8+
k8s = "1.28.1"

examples/kubevela/kcl-play-svc/kcl.mod.lock

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
[dependencies]
22
[dependencies.k8s]
33
name = "k8s"
4-
full_name = "k8s_1.28"
5-
version = "1.28"
6-
sum = "aTxPUVZyr9MdiB3YdiY/8pCh9sC55yURnZdGlJsKG6Q="
7-
reg = "ghcr.io"
8-
repo = "kcl-lang/k8s"
9-
oci_tag = "1.28"
4+
full_name = "k8s_1.28.1"
5+
version = "1.28.1"
106
[dependencies.oam]
117
name = "oam"
128
full_name = "oam_0.1.0"

examples/package-management/oci/my_package/kcl.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ edition = "0.0.1"
44
version = "0.0.1"
55

66
[dependencies]
7-
k8s = "1.28"
7+
k8s = "1.28.1"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[dependencies]
22
[dependencies.k8s]
33
name = "k8s"
4-
full_name = "k8s_1.28"
5-
version = "1.28"
4+
full_name = "k8s_1.28.1"
5+
version = "1.28.1"

i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/guides/package-management/3-quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ version = "0.0.1"
3939
如下面的命令所示,为当前包添加一个版本号为 `1.28` 并且名为 `k8s` 的依赖包。
4040

4141
```shell
42-
kcl mod add k8s:1.28
42+
kcl mod add k8s:1.28.1
4343
```
4444

4545
`kcl` 会为您将依赖添加到 kcl.mod 文件中.
@@ -51,7 +51,7 @@ edition = "0.0.1"
5151
version = "0.0.1"
5252

5353
[dependencies]
54-
k8s = "1.28" # The dependency 'k8s' with version '1.28'
54+
k8s = "1.28.1" # The dependency 'k8s' with version '1.28.1'
5555
```
5656

5757
## 编写一个程序使用包 `konfig` 中的内容

0 commit comments

Comments
 (0)