Skip to content

Commit 5bb72c2

Browse files
author
Mengqi Yu
committed
update for starlark/v0.2
1 parent c27cecd commit 5bb72c2

File tree

13 files changed

+25
-25
lines changed

13 files changed

+25
-25
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#! /bin/bash
22

3-
kpt fn eval --image gcr.io/kpt-fn/starlark:unstable --image-pull-policy never -- source="$(cat set-replicas.star)" replicas=5
3+
kpt fn eval --image gcr.io/kpt-fn/starlark:v0.2 --image-pull-policy never -- source="$(cat set-replicas.star)" replicas=5

examples/starlark-configmap-as-functionconfig/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ line arguments.
1212
Get the example package by running the following commands:
1313

1414
```shell
15-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/starlark-configmap-as-functionconfig
15+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/starlark-configmap-as-functionconfig@starlark/v0.2
1616
```
1717

1818
We are going to use the following starlark script:
@@ -33,7 +33,7 @@ setReplicas(ctx.resource_list["items"], replicas)
3333
Invoke the function by running the following commands:
3434

3535
```shell
36-
$ kpt fn eval --image gcr.io/kpt-fn/starlark:unstable -- source="$(cat set-replicas.star)" replicas=5
36+
$ kpt fn eval --image gcr.io/kpt-fn/starlark:v0.2 -- source="$(cat set-replicas.star)" replicas=5
3737
```
3838

3939
### Expected result

examples/starlark-inject-sidecar/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: example
55
pipeline:
66
mutators:
7-
- image: gcr.io/kpt-fn/starlark:unstable
7+
- image: gcr.io/kpt-fn/starlark:v0.2
88
configPath: fn-config.yaml

examples/starlark-inject-sidecar/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ to inject sidecar container to `Deployment`.
1111
Get the example package by running the following commands:
1212

1313
```shell
14-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/starlark-inject-sidecar
14+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/starlark-inject-sidecar@starlark/v0.2
1515
```
1616

1717
We are going to use the following `Kptfile` and `fn-config.yaml` to configure
@@ -24,7 +24,7 @@ metadata:
2424
name: example
2525
pipeline:
2626
mutators:
27-
- image: gcr.io/kpt-fn/starlark:unstable
27+
- image: gcr.io/kpt-fn/starlark:v0.2
2828
configPath: fn-config.yaml
2929
```
3030

examples/starlark-poddisruptionbudget/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: example
55
pipeline:
66
mutators:
7-
- image: gcr.io/kpt-fn/starlark:unstable
7+
- image: gcr.io/kpt-fn/starlark:v0.2
88
configPath: fn-config.yaml

examples/starlark-poddisruptionbudget/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ the `functionConfig` and use it in the script.
1212
Get the example package by running the following commands:
1313

1414
```shell
15-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/starlark-poddisruptionbudget
15+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/starlark-poddisruptionbudget@starlark/v0.2
1616
```
1717

1818
We are going to use the following `Kptfile` and `fn-config.yaml` to configure
@@ -26,7 +26,7 @@ metadata:
2626
name: example
2727
pipeline:
2828
mutators:
29-
- image: gcr.io/kpt-fn/starlark:unstable
29+
- image: gcr.io/kpt-fn/starlark:v0.2
3030
configPath: fn-config.yaml
3131
```
3232

examples/starlark-set-namespace/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: example
55
pipeline:
66
mutators:
7-
- image: gcr.io/kpt-fn/starlark:unstable
7+
- image: gcr.io/kpt-fn/starlark:v0.2
88
configPath: fn-config.yaml

examples/starlark-set-namespace/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ to set namespaces to KRM resources.
1111
Get the example package by running the following commands:
1212

1313
```shell
14-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/starlark-set-namespace
14+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/starlark-set-namespace@starlark/v0.2
1515
```
1616

1717
We are going to use the following `Kptfile` and `fn-config.yaml` to configure
@@ -24,7 +24,7 @@ metadata:
2424
name: example
2525
pipeline:
2626
mutators:
27-
- image: gcr.io/kpt-fn/starlark:unstable
27+
- image: gcr.io/kpt-fn/starlark:v0.2
2828
configPath: fn-config.yaml
2929
```
3030

examples/starlark-validation/.expected/results.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: fnresults
55
exitCode: 1
66
items:
7-
- image: gcr.io/kpt-fn/starlark:unstable
7+
- image: gcr.io/kpt-fn/starlark:v0.2
88
stderr: '[error] : fail: it is prohibited to have private key in a configmap'
99
exitCode: 1
1010
results:

examples/starlark-validation/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: example
55
pipeline:
66
validators:
7-
- image: gcr.io/kpt-fn/starlark:unstable
7+
- image: gcr.io/kpt-fn/starlark:v0.2
88
configPath: fn-config.yaml

0 commit comments

Comments
 (0)