Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix test case, replace deprecated konfig with v0.10.0 #515

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/pull_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ if [ ! -d "./ghcr.io/kcl-lang/k8s/1.27" ]; then
$current_dir/bin/kpm pull k8s:1.27
fi

if [ ! -d "./ghcr.io/kcl-lang/k8s/1.31.2" ]; then
$current_dir/bin/kpm pull k8s:1.31.2
fi

if [ ! -d "./ghcr.io/kcl-lang/helloworld/0.1.1" ]; then
$current_dir/bin/kpm pull helloworld:0.1.1
fi
Expand Down
8 changes: 7 additions & 1 deletion scripts/push_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ $current_dir/bin/kpm push

cd "$current_dir"

# Push the package k8s/1.17 to the registry
# Push the package k8s/1.27 to the registry
cd ./scripts/pkg_in_reg/ghcr.io/kcl-lang/k8s/1.27
$current_dir/bin/kpm push

cd "$current_dir"

# Push the package k8s/1.31.2 to the registry
cd ./scripts/pkg_in_reg/ghcr.io/kcl-lang/k8s/1.31.2
$current_dir/bin/kpm push

cd "$current_dir"

# Push the package helloworld/1.17 to the registry
cd ./scripts/pkg_in_reg/ghcr.io/kcl-lang/helloworld/0.1.1
$current_dir/bin/kpm push
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
start to pull 'oci://localhost:5001/test/k8s'
the lastest version '1.27' will be pulled
pulling '/test/k8s:1.27' from 'localhost:5001/test/k8s'
the lastest version '1.31.2' will be pulled
pulling '/test/k8s:1.31.2' from 'localhost:5001/test/k8s'
pulled 'oci://localhost:5001/test/k8s' in '<workspace>/localhost:5001/test/k8s' successfully
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
start to pull 'k8s'
the lastest version '1.27' will be pulled
pulling 'test/k8s:1.27' from 'localhost:5001/test/k8s'
the lastest version '1.31.2' will be pulled
pulling 'test/k8s:1.31.2' from 'localhost:5001/test/k8s'
pulled 'k8s' in '<workspace>/localhost:5001/test/k8s' successfully
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kpm add -git https://github.com/awesome-kusion/konfig.git -tag v0.0.1
kpm add -git https://github.com/kcl-lang/konfig -tag v0.10.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
add dependency 'konfig:v0.0.1' successfully
add dependency 'konfig:v0.10.0' successfully
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kpm add -git https://github.com/awesome-kusion/konfig.git -tag v0.0.1
kpm add -git https://github.com/kcl-lang/konfig -tag v0.10.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
add dependency 'konfig:v0.0.1' successfully
add dependency 'konfig:v0.10.0' successfully
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kpm add -git https://github.com/awesome-kusion/konfig.git -tag v0.0.1
kpm add -git https://github.com/kcl-lang/konfig -tag v0.10.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
add dependency 'konfig:v0.0.1' successfully
add dependency 'konfig:v0.10.0' successfully
Loading