Skip to content

Commit 1420cc5

Browse files
Update tag for upsert-resource:v0.2 (#652)
* Update tag * Update links * Update metadata
1 parent c24ecc8 commit 1420cc5

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
testType: eval
2-
image: upsert-resource:unstable
2+
image: upsert-resource:v0.2
33
fnConfig: fn-config.yaml

examples/upsert-resource-at-path/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ In this example, we will see how to add a resource at specified path using `upse
77
Get the example package by running the following commands:
88

99
```shell
10-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/upsert-resource-at-path
10+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/upsert-resource-at-path@upsert-resource/v0.2
1111
```
1212

1313
The input resource is present at path `.expected/fn-config.yaml`. It has an annotation
@@ -19,7 +19,7 @@ should be upserted.
1919
Invoke the function by running the following commands:
2020

2121
```shell
22-
$ kpt fn eval -i upsert-resource:unstable --fn-config .expected/fn-config.yaml
22+
$ kpt fn eval -i upsert-resource:v0.2 --fn-config .expected/fn-config.yaml
2323
```
2424

2525
### Expected result
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
testType: eval
2-
image: upsert-resource:unstable
2+
image: upsert-resource:v0.2
33
fnConfig: fn-config.yaml
44
# Skip this until v1.0.0-beta.9 of kpt is released
55
skip: true

examples/upsert-resource-multiple/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function.
88
Get the example package by running the following commands:
99

1010
```shell
11-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/upsert-resource-multiple
11+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/upsert-resource-multiple@upsert-resource/v0.2
1212
```
1313

1414
kpt CLI accepts only one resource as fn-config. Hence, `upsert-resource` function
@@ -20,7 +20,7 @@ You can find an example of `List` at `.expected/fn-config.yaml`
2020
Invoke the function by running the following commands:
2121

2222
```shell
23-
$ kpt fn eval -i upsert-resource:unstable --fn-config .expected/fn-config.yaml
23+
$ kpt fn eval -i upsert-resource:v0.2 --fn-config .expected/fn-config.yaml
2424
```
2525

2626
### Expected result

examples/upsert-resource-simple/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/upsert-resource:unstable
7+
- image: gcr.io/kpt-fn/upsert-resource:v0.2
88
configPath: fn-config.yaml

examples/upsert-resource-simple/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package with the input resource.
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/upsert-resource-simple
12+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/upsert-resource-simple@upsert-resource/v0.2
1313
```
1414

1515
Let's start with the list of resources in a package:

functions/go/upsert-resource/metadata.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ image: gcr.io/kpt-fn/upsert-resource
22
description: Insert a resource, or if the resource already exists, update the existing resource.
33
tags:
44
- mutator
5-
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/functions/go/upsert-resource
5+
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/upsert-resource/v0.2/functions/go/upsert-resource
66
examplePackageURLs:
7-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/upsert-resource-simple
8-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/upsert-resource-multiple
9-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/upsert-resource-at-path
7+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/upsert-resource/v0.2/examples/upsert-resource-simple
8+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/upsert-resource/v0.2/examples/upsert-resource-multiple
9+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/upsert-resource/v0.2/examples/upsert-resource-at-path
1010
emails:
1111
- kpt-team@google.com
1212
license: Apache-2.0

0 commit comments

Comments
 (0)