File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed
functions/go/set-project-id Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
1
testType : eval
2
2
includeMetaResources : true
3
- image : gcr.io/kpt-fn/set-project-id:unstable
3
+ image : gcr.io/kpt-fn/set-project-id:v0.2
4
4
args :
5
5
project-id : foo
Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ Running `set-project-id` function on the example packed will:
18
18
Get the example package by running the following commands:
19
19
20
20
``` 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
22
22
```
23
23
24
24
### Function invocation
25
25
26
26
Invoke the function with the following command:
27
27
28
28
``` 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'
30
30
```
31
31
32
32
### Expected result
@@ -40,4 +40,4 @@ kpt fn eval set-project-id-advanced --include-meta-resources --image gcr.io/kpt-
40
40
IAMServiceAccount resource will include `cnrm.cloud.google.com/project-id:
41
41
foo` annotation.
42
42
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 /
Original file line number Diff line number Diff line change 1
1
testType : eval
2
2
includeMetaResources : true
3
- image : gcr.io/kpt-fn/set-project-id:unstable
3
+ image : gcr.io/kpt-fn/set-project-id:v0.2
4
4
args :
5
5
project-id : foo
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ Running `set-project-id` function on the example packed will:
16
16
Get the example package by running the following commands:
17
17
18
18
``` 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
20
20
```
21
21
22
22
### Function invocation
23
23
24
24
Invoke the function with the following command:
25
25
26
26
``` 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'
28
28
```
29
29
30
30
### Expected result
@@ -33,4 +33,4 @@ kpt fn eval set-project-id-simple --include-meta-resources --image gcr.io/kpt-fn
33
33
2 . In resources.yaml ` my-test-project-second-bucket ` StorageBucket resource
34
34
will include ` cnrm.cloud.google.com/project-id: foo ` annotation.
35
35
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 /
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if they are not already set.
18
18
set-project-id function is expected to be executed imperatively like:
19
19
20
20
``` 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'
22
22
```
23
23
24
24
The ` set-project-id ` function does the following:
@@ -63,7 +63,7 @@ metadata:
63
63
Invoke the function:
64
64
65
65
` ` ` 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'
67
67
```
68
68
69
69
Kptfile will be updated to the following:
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ description: Set project id setter and annotatons if unset.
3
3
tags :
4
4
- mutator
5
5
- 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
7
7
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
10
10
emails :
11
11
- kpt-team@google.com
12
12
license : Apache-2.0
You can’t perform that action at this time.
0 commit comments