Skip to content

Commit 6b59781

Browse files
author
Mengqi Yu
authored
updates for set-project-id/v0.2 (#563)
1 parent bb484ad commit 6b59781

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
testType: eval
22
includeMetaResources: true
3-
image: gcr.io/kpt-fn/set-project-id:unstable
3+
image: gcr.io/kpt-fn/set-project-id:v0.2
44
args:
55
project-id: foo

examples/set-project-id-advanced/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ Running `set-project-id` function on the example packed will:
1818
Get the example package by running the following commands:
1919

2020
```shell
21-
kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/set-project-id-advanced
21+
kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/set-project-id-advanced@set-project-id/v0.2
2222
```
2323

2424
### Function invocation
2525

2626
Invoke the function with the following command:
2727

2828
```shell
29-
kpt fn eval set-project-id-advanced --include-meta-resources --image gcr.io/kpt-fn/set-project-id:unstable -- 'project-id=foo'
29+
kpt fn eval set-project-id-advanced --include-meta-resources --image gcr.io/kpt-fn/set-project-id:v0.2 -- 'project-id=foo'
3030
```
3131

3232
### Expected result
@@ -40,4 +40,4 @@ kpt fn eval set-project-id-advanced --include-meta-resources --image gcr.io/kpt-
4040
IAMServiceAccount resource will include `cnrm.cloud.google.com/project-id:
4141
foo` annotation.
4242

43-
[`set-project-id`]: https://catalog.kpt.dev/set-project-id/v0.1/
43+
[`set-project-id`]: https://catalog.kpt.dev/set-project-id/v0.2/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
testType: eval
22
includeMetaResources: true
3-
image: gcr.io/kpt-fn/set-project-id:unstable
3+
image: gcr.io/kpt-fn/set-project-id:v0.2
44
args:
55
project-id: foo

examples/set-project-id-simple/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ Running `set-project-id` function on the example packed will:
1616
Get the example package by running the following commands:
1717

1818
```shell
19-
kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/set-project-id-simple
19+
kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/set-project-id-simple@set-project-id/v0.2
2020
```
2121

2222
### Function invocation
2323

2424
Invoke the function with the following command:
2525

2626
```shell
27-
kpt fn eval set-project-id-simple --include-meta-resources --image gcr.io/kpt-fn/set-project-id:unstable -- 'project-id=foo'
27+
kpt fn eval set-project-id-simple --include-meta-resources --image gcr.io/kpt-fn/set-project-id:v0.2 -- 'project-id=foo'
2828
```
2929

3030
### Expected result
@@ -33,4 +33,4 @@ kpt fn eval set-project-id-simple --include-meta-resources --image gcr.io/kpt-fn
3333
2. In resources.yaml `my-test-project-second-bucket` StorageBucket resource
3434
will include `cnrm.cloud.google.com/project-id: foo` annotation.
3535

36-
[`set-project-id`]: https://catalog.kpt.dev/set-project-id/v0.1/
36+
[`set-project-id`]: https://catalog.kpt.dev/set-project-id/v0.2/

functions/go/set-project-id/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if they are not already set.
1818
set-project-id function is expected to be executed imperatively like:
1919

2020
```shell
21-
kpt fn eval --include-meta-resources --image gcr.io/kpt-fn/set-project-id:unstable -- 'project-id=foo'
21+
kpt fn eval --include-meta-resources --image gcr.io/kpt-fn/set-project-id:v0.2 -- 'project-id=foo'
2222
```
2323

2424
The `set-project-id` function does the following:
@@ -63,7 +63,7 @@ metadata:
6363
Invoke the function:
6464
6565
```shell
66-
kpt fn eval --include-meta-resources --image gcr.io/kpt-fn/set-project-id:unstable -- 'project-id=foo'
66+
kpt fn eval --include-meta-resources --image gcr.io/kpt-fn/set-project-id:v0.2 -- 'project-id=foo'
6767
```
6868

6969
Kptfile will be updated to the following:

functions/go/set-project-id/generated/docs.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

functions/go/set-project-id/metadata.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ description: Set project id setter and annotatons if unset.
33
tags:
44
- mutator
55
- GCP
6-
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/functions/go/set-project-id
6+
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/set-project-id/v0.2/functions/go/set-project-id
77
examplePackageURLs:
8-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/set-project-id-simple
9-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/set-project-id-advanced
8+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/set-project-id/v0.2/examples/set-project-id-simple
9+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/set-project-id/v0.2/examples/set-project-id-advanced
1010
emails:
1111
- kpt-team@google.com
1212
license: Apache-2.0

0 commit comments

Comments
 (0)