Skip to content

Commit

Permalink
Update tag for upsert-resource:v0.2 (#652)
Browse files Browse the repository at this point in the history
* Update tag

* Update links

* Update metadata
  • Loading branch information
phanimarupaka authored Nov 19, 2021
1 parent c24ecc8 commit 1420cc5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/upsert-resource-at-path/.expected/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
testType: eval
image: upsert-resource:unstable
image: upsert-resource:v0.2
fnConfig: fn-config.yaml
4 changes: 2 additions & 2 deletions examples/upsert-resource-at-path/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ In this example, we will see how to add a resource at specified path using `upse
Get the example package by running the following commands:

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

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

```shell
$ kpt fn eval -i upsert-resource:unstable --fn-config .expected/fn-config.yaml
$ kpt fn eval -i upsert-resource:v0.2 --fn-config .expected/fn-config.yaml
```

### Expected result
Expand Down
2 changes: 1 addition & 1 deletion examples/upsert-resource-multiple/.expected/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
testType: eval
image: upsert-resource:unstable
image: upsert-resource:v0.2
fnConfig: fn-config.yaml
# Skip this until v1.0.0-beta.9 of kpt is released
skip: true
4 changes: 2 additions & 2 deletions examples/upsert-resource-multiple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function.
Get the example package by running the following commands:

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

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

```shell
$ kpt fn eval -i upsert-resource:unstable --fn-config .expected/fn-config.yaml
$ kpt fn eval -i upsert-resource:v0.2 --fn-config .expected/fn-config.yaml
```

### Expected result
Expand Down
2 changes: 1 addition & 1 deletion examples/upsert-resource-simple/Kptfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
name: example
pipeline:
mutators:
- image: gcr.io/kpt-fn/upsert-resource:unstable
- image: gcr.io/kpt-fn/upsert-resource:v0.2
configPath: fn-config.yaml
2 changes: 1 addition & 1 deletion examples/upsert-resource-simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package with the input resource.
Get the example package by running the following commands:

```shell
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/upsert-resource-simple
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/upsert-resource-simple@upsert-resource/v0.2
```

Let's start with the list of resources in a package:
Expand Down
8 changes: 4 additions & 4 deletions functions/go/upsert-resource/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ image: gcr.io/kpt-fn/upsert-resource
description: Insert a resource, or if the resource already exists, update the existing resource.
tags:
- mutator
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/functions/go/upsert-resource
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/upsert-resource/v0.2/functions/go/upsert-resource
examplePackageURLs:
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/upsert-resource-simple
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/upsert-resource-multiple
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/upsert-resource-at-path
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/upsert-resource/v0.2/examples/upsert-resource-simple
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/upsert-resource/v0.2/examples/upsert-resource-multiple
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/upsert-resource/v0.2/examples/upsert-resource-at-path
emails:
- [email protected]
license: Apache-2.0

0 comments on commit 1420cc5

Please sign in to comment.