Repository: GoogleContainerTools/kpt
Pull request #3045 (2022-04-21 22:16:28)

update builtin starlark to v0.4.2


Patch:
diff --git a/porch/engine/pkg/engine/builtinruntime.go b/porch/engine/pkg/engine/builtinruntime.go
index 06874f56..581e1743 100644
--- a/porch/engine/pkg/engine/builtinruntime.go
+++ b/porch/engine/pkg/engine/builtinruntime.go
@@ -39,9 +39,9 @@ var (
 		"gcr.io/kpt-fn/set-namespace@sha256:0ec0fb2380be42142a87a7c9815f0d30415e2da07468591dd9345c7c81d6c93e",
 	}
 	starlarkImageAliases = []string{
-		"gcr.io/kpt-fn/starlark:v0.4.0",
+		"gcr.io/kpt-fn/starlark:v0.4.2",
 		"gcr.io/kpt-fn/starlark:v0.4",
-		"gcr.io/kpt-fn/starlark@sha256:4f98e9298eb1d605ec22515771e0c495dad75606058edd926449825dc59dcd1b",
+		"gcr.io/kpt-fn/starlark@sha256:96ad5c6a7c5099adf1a74173b75558dc4192a1de9c77c3b6e24b8f269807bf6b",
 	}
 )
 
diff --git a/porch/go.mod b/porch/go.mod
index 81c7a91c..4ef2b5f2 100644
--- a/porch/go.mod
+++ b/porch/go.mod
@@ -14,7 +14,7 @@ require (
 	github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/apply-replacements v0.1.0
 	github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/apply-setters v0.2.0
 	github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/set-namespace v0.3.4
-	github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark v0.4.0
+	github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark v0.4.2
 	github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20220412175831-2afd3aec6b69
 	github.com/GoogleContainerTools/kpt/porch/api v0.0.0-20220419065917-49bc6c977530
 	github.com/bluekeyes/go-gitdiff v0.6.1
diff --git a/porch/go.sum b/porch/go.sum
index a7ca5501..e807cc14 100644
--- a/porch/go.sum
+++ b/porch/go.sum
@@ -92,8 +92,8 @@ github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/apply-setters
 github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/apply-setters v0.2.0/go.mod h1:D+1CuvT4BecI7ZokGUVPdjnhT+z0z1/9NB6HGH4cTSI=
 github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/set-namespace v0.3.4 h1:V5sTd8pln1mL9SHeGyC4x9uP2AL4y+N+pnjEh20EE7M=
 github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/set-namespace v0.3.4/go.mod h1:es9oqMBPDWJOgjigRvOiqHxbQd37+ibLnoLBg1dVrIg=
-github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark v0.4.0 h1:EgrqUigiEewdqfIZ24nk477ES5JRRiZDOBwxd9w8+R4=
-github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark v0.4.0/go.mod h1:X89ClZrU47o3B0bRra9qHSjb8t+TReFKDbVTgu/ygp0=
+github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark v0.4.2 h1:xwyMfOLoqV48y9B6kDYIg98OI4u2VC/hcPyTyN+piy4=
+github.com/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark v0.4.2/go.mod h1:T7YXoIrhculP6vKqZ4ec9TT4q3e1ZveySWAYJFCd6Bs=
 github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20220329070820-f687d1b931e6/go.mod h1:hENpuHQH/bIfHUCuG4hvzb5i4doJ1KTId5EdWBg6AvU=
 github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20220412175831-2afd3aec6b69 h1:PN0g/pvOy/qmgi9a7qWMgMKteLBo615U+doZT6G+fuE=
 github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20220412175831-2afd3aec6b69/go.mod h1:hENpuHQH/bIfHUCuG4hvzb5i4doJ1KTId5EdWBg6AvU=


Test patch:
diff --git a/porch/apiserver/pkg/e2e/e2e_test.go b/porch/apiserver/pkg/e2e/e2e_test.go
index 0e7ef1f0..8e57beb5 100644
--- a/porch/apiserver/pkg/e2e/e2e_test.go
+++ b/porch/apiserver/pkg/e2e/e2e_test.go
@@ -834,7 +834,7 @@ func (t *PorchSuite) TestBuiltinFunctionEvaluator(ctx context.Context) {
 				{
 					Type: "eval",
 					Eval: &porchapi.FunctionEvalTaskSpec{
-						Image: "gcr.io/kpt-fn/starlark:v0.4.0",
+						Image: "gcr.io/kpt-fn/starlark:v0.4.2",
 						ConfigMap: map[string]string{
 							"source": `for resource in ctx.resource_list["items"]:
   resource["metadata"]["annotations"]["foo"] = "bar"`,
@@ -844,7 +844,7 @@ func (t *PorchSuite) TestBuiltinFunctionEvaluator(ctx context.Context) {
 				{
 					Type: "eval",
 					Eval: &porchapi.FunctionEvalTaskSpec{
-						Image: "gcr.io/kpt-fn/set-namespace:v0.3.1",
+						Image: "gcr.io/kpt-fn/set-namespace:v0.3.4",
 						ConfigMap: map[string]string{
 							"namespace": "bucket-namespace",
 						},