Skip to content

Commit

Permalink
Merge pull request #10 from Peefy/releases/0.5
Browse files Browse the repository at this point in the history
chore: bump kcl version to 0.5
  • Loading branch information
Peefy authored Jul 13, 2023
2 parents 4c1381b + f5cb423 commit 7aaa5ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/stretchr/testify v1.8.4
k8s.io/api v0.27.3
k8s.io/apimachinery v0.27.3
kcl-lang.io/kcl-go v0.5.0-beta.2
kcl-lang.io/kcl-go v0.5.0
kcl-lang.io/kpm v0.2.6
sigs.k8s.io/kustomize/kyaml v0.14.3
)
Expand Down Expand Up @@ -118,7 +118,7 @@ require (
k8s.io/klog/v2 v2.90.1 // indirect
k8s.io/kube-openapi v0.0.0-20230601164746-7562a1006961 // indirect
k8s.io/utils v0.0.0-20230505201702-9f6742963106 // indirect
kcl-lang.io/kcl-artifact-go v0.5.0-beta.1 // indirect
kcl-lang.io/kcl-artifact-go v0.5.0 // indirect
oras.land/oras-go v1.2.3 // indirect
oras.land/oras-go/v2 v2.0.2 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1177,10 +1177,10 @@ k8s.io/kube-openapi v0.0.0-20230601164746-7562a1006961 h1:pqRVJGQJz6oeZby8qmPKXY
k8s.io/kube-openapi v0.0.0-20230601164746-7562a1006961/go.mod h1:l8HTwL5fqnlns4jOveW1L75eo7R9KFHxiE0bsPGy428=
k8s.io/utils v0.0.0-20230505201702-9f6742963106 h1:EObNQ3TW2D+WptiYXlApGNLVy0zm/JIBVY9i+M4wpAU=
k8s.io/utils v0.0.0-20230505201702-9f6742963106/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
kcl-lang.io/kcl-artifact-go v0.5.0-beta.1 h1:HGjgH3/+2okgzIxsUC8+yq0LhrUj2h7nk/nz6QKp6N4=
kcl-lang.io/kcl-artifact-go v0.5.0-beta.1/go.mod h1:c07mqi9Hu2UjPW7lYfHhAAWOlZiB7lo7Vkr4jL5ov/M=
kcl-lang.io/kcl-go v0.5.0-beta.2 h1:603hUZhXHvBkWWVnwyYYfjiKGndXNNudv8PquMRVFmA=
kcl-lang.io/kcl-go v0.5.0-beta.2/go.mod h1:PPTopxnrHjNCTSJZoH2R1NoO7E2wc2kzv7zeU6wnKNE=
kcl-lang.io/kcl-artifact-go v0.5.0 h1:zaIUamQjdrW+imLZCnrl7g2QuhCNuYCCvoPFFkikgLM=
kcl-lang.io/kcl-artifact-go v0.5.0/go.mod h1:c07mqi9Hu2UjPW7lYfHhAAWOlZiB7lo7Vkr4jL5ov/M=
kcl-lang.io/kcl-go v0.5.0 h1:t9gBcUDQoEa894l0xZ7wKFoC4Nj3EOLvEb4mSiPN0EM=
kcl-lang.io/kcl-go v0.5.0/go.mod h1:gdDthKp2sx6LWfTuIcw50K1RTOQhzBtFGz6dMO7R25Q=
kcl-lang.io/kpm v0.2.6 h1:bTcOasx125ynBM3qHQx4bQKDaYvCYTBkbONEeeuhPqY=
kcl-lang.io/kpm v0.2.6/go.mod h1:BMyLN22bjtfjGgtiZeGFEdXEw8NI/89RKo6fAakBL8g=
oras.land/oras-go v1.2.3 h1:v8PJl+gEAntI1pJ/LCrDgsuk+1PKVavVEPsYIHFE5uY=
Expand Down
4 changes: 2 additions & 2 deletions pkg/edit/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"text/template"

src "kcl-lang.io/krm-kcl/pkg/source"
"kcl-lang.io/kcl-go"
kcl "kcl-lang.io/kcl-go"

"github.com/Masterminds/sprig/v3"
"github.com/acarl005/stripansi"
Expand Down Expand Up @@ -50,7 +50,7 @@ func RunKCL(name, source string, resourceList *yaml.RNode) (*yaml.RNode, error)
}

// 3. Run the KCL code.
r, err := kclvm.Run(file, kclvm.WithOptions(fmt.Sprintf("%s=%s", resourceListOptionName, resourceListOptionKCLValue)))
r, err := kcl.Run(file, kcl.WithOptions(fmt.Sprintf("%s=%s", resourceListOptionName, resourceListOptionKCLValue)))
if err != nil {
return nil, errors.Wrap(stripansi.Strip(err.Error()))
}
Expand Down

0 comments on commit 7aaa5ea

Please sign in to comment.