Skip to content

Commit 0b946f6

Browse files
author
Mengqi Yu
authored
updates for list-setters/v0.1 branch (#527)
1 parent 0c4fbf2 commit 0b946f6

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
exitCode: 0
22
testType: eval
3-
image: gcr.io/kpt-fn/list-setters:unstable
3+
image: gcr.io/kpt-fn/list-setters:v0.1

examples/list-setters-simple/.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: 0
66
items:
7-
- image: gcr.io/kpt-fn/list-setters:unstable
7+
- image: gcr.io/kpt-fn/list-setters:v0.1
88
exitCode: 0
99
results:
1010
- message: 'Name: env, Value: [dev, stage], Type: array, Count: 1'

examples/list-setters-simple/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ In this example, we will see how to list setters in a package.
99
Get the example package by running the following commands:
1010

1111
```shell
12-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/list-setters-simple
12+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/list-setters-simple@list-setters/v0.1
1313
```
1414

1515
### Function invocation
1616

1717
Invoke the function by running the following command:
1818

1919
```shell
20-
$ kpt fn eval --image gcr.io/kpt-fn/list-setters:unstable
20+
$ kpt fn eval --image gcr.io/kpt-fn/list-setters:v0.1
2121
```
2222

2323
### Expected result
2424

2525
```shell
26-
[RUNNING] "gcr.io/kpt-fn/list-setters:unstable"
27-
[PASS] "gcr.io/kpt-fn/list-setters:unstable"
26+
[RUNNING] "gcr.io/kpt-fn/list-setters:v0.1"
27+
[PASS] "gcr.io/kpt-fn/list-setters:v0.1"
2828
Results:
2929
[INFO] Name: env, Value: [stage, dev], Type: array, Count: 1
3030
[INFO] Name: nginx-replicas, Value: 3, Type: int, Count: 1

functions/go/list-setters/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Refer to the [create-setters] function documentation for information about creat
1717
`list-setters` function is expected to be executed imperatively like
1818

1919
```shell
20-
$ kpt fn eval -i list-setters:unstable
20+
$ kpt fn eval -i list-setters:v0.1
2121
```
2222

2323
`list-setters` function performs the following steps:
@@ -62,7 +62,7 @@ spec:
6262
Invoke the function:
6363
6464
```shell
65-
$ kpt fn eval --image gcr.io/kpt-fn/list-setters:unstable
65+
$ kpt fn eval --image gcr.io/kpt-fn/list-setters:v0.1
6666
```
6767

6868
Output looks like the following:

functions/go/list-setters/metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ image: gcr.io/kpt-fn/list-setters
22
description: List setters on resource fields.
33
tags:
44
- viewer
5-
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/functions/go/list-setters
5+
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/list-setters/v0.1/functions/go/list-setters
66
examplePackageURLs:
7-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/list-setters-simple
7+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/list-setters/v0.1/examples/list-setters-simple
88
emails:
99
- kpt-team@google.com
1010
license: Apache-2.0

0 commit comments

Comments
 (0)