Skip to content

Commit b383d76

Browse files
committed
chore: update git package examples
Signed-off-by: peefy <[email protected]>
1 parent e8a422c commit b383d76

File tree

4 files changed

+20
-24
lines changed

4 files changed

+20
-24
lines changed

examples/package-management/git/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-
konfig = { git = "https://github.com/awesome-kusion/konfig.git", tag = "v0.0.1" }
7+
konfig = { git = "https://github.com/kcl-lang/konfig.git", tag = "v0.6.0" }
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
[dependencies]
2+
[dependencies.k8s]
3+
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"
210
[dependencies.konfig]
311
name = "konfig"
4-
full_name = "_"
5-
sum = "XFvHdBAoY/+qpJWmj8cjwOwZO8a3nX/7SE35cTxQOFU="
6-
url = "https://github.com/awesome-kusion/konfig.git"
7-
git_tag = "v0.0.1"
12+
full_name = "konfig_0.6.0"
13+
version = "0.6.0"
14+
url = "https://github.com/kcl-lang/konfig.git"
15+
git_tag = "v0.6.0"
Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
import konfig.base.pkg.kusion_kubernetes.api.apps.v1 as apps
1+
import konfig.models.kube.frontend
22

3-
apps.Deployment {
4-
metadata.name = "nginx-deployment"
5-
spec = {
6-
replicas = 3
7-
selector.matchLabels.app = "nginx"
8-
template.metadata.labels = selector.matchLabels
9-
template.spec.containers = [
10-
{
11-
name = selector.matchLabels.app
12-
image = "nginx:1.14.2"
13-
ports = [
14-
{containerPort = 80}
15-
]
16-
}
17-
]
18-
}
3+
frontend.Server {
4+
name = "nginx-deployment"
5+
image = "nginx"
6+
mainContainer.name = name
197
}

test/e2e/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func GetWorkDir() string {
4949
return dir
5050
}
5151

52-
// GetKpmCLIBin return kusion binary path in e2e test
52+
// GetKpmCLIBin return kpm binary path in e2e test
5353
func GetKpmCLIBin() string {
5454
dir, _ := os.Getwd()
5555
binPath := filepath.Join(dir, "../..", "bin")
@@ -83,7 +83,7 @@ func ExecWithWorkDir(cli, dir string) (string, error) {
8383
return string(s.Out.Contents()) + string(s.Err.Contents()), nil
8484
}
8585

86-
// ExecKpm executes kusion command
86+
// ExecKpm executes command
8787
func ExecKpm(cli string) (string, error) {
8888
var output []byte
8989
c := strings.Fields(cli)

0 commit comments

Comments
 (0)