Skip to content

Commit

Permalink
update for branch enable-gcp-services/v0.1 (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu authored Nov 19, 2021
1 parent 7140b84 commit 1b6d4ae
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: fnresults
exitCode: 0
items:
- image: gcr.io/kpt-fn/enable-gcp-services:unstable
- image: gcr.io/kpt-fn/enable-gcp-services:v0.1
exitCode: 0
results:
- message: pruned service
Expand Down
2 changes: 1 addition & 1 deletion examples/enable-gcp-services-advanced/Kptfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: enable-gcp-services-advanced
pipeline:
mutators:
- image: gcr.io/kpt-fn/enable-gcp-services:unstable
- image: gcr.io/kpt-fn/enable-gcp-services:v0.1
6 changes: 3 additions & 3 deletions examples/enable-gcp-services-advanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In this example, we will see how to generate [project services](https://cloud.go
Get the example package by running the following commands:

```shell
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/enable-gcp-services-advanced
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/enable-gcp-services-advanced@enable-gcp-services/v0.1
```

Explore the package by running:
Expand Down Expand Up @@ -41,8 +41,8 @@ $ kpt fn render enable-gcp-services-advanced

```shell
Package "enable-gcp-services-advanced":
[RUNNING] "gcr.io/kpt-fn/enable-gcp-services:unstable"
[PASS] "gcr.io/kpt-fn/enable-gcp-services:unstable"
[RUNNING] "gcr.io/kpt-fn/enable-gcp-services:v0.1"
[PASS] "gcr.io/kpt-fn/enable-gcp-services:v0.1"
Results:
[INFO] pruned service in object "serviceusage.cnrm.cloud.google.com/v1beta1/Service/proj1-service-bigquery" in file "service_proj1-service-bigquery.yaml"
[INFO] recreated service in object "serviceusage.cnrm.cloud.google.com/v1beta1/Service/proj1-service-compute" in file "service_proj1-service-compute.yaml"
Expand Down
2 changes: 1 addition & 1 deletion examples/enable-gcp-services-simple/.expected/results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: fnresults
exitCode: 0
items:
- image: gcr.io/kpt-fn/enable-gcp-services:unstable
- image: gcr.io/kpt-fn/enable-gcp-services:v0.1
exitCode: 0
results:
- message: generated service
Expand Down
2 changes: 1 addition & 1 deletion examples/enable-gcp-services-simple/Kptfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: enable-gcp-services-simple
pipeline:
mutators:
- image: gcr.io/kpt-fn/enable-gcp-services:unstable
- image: gcr.io/kpt-fn/enable-gcp-services:v0.1
6 changes: 3 additions & 3 deletions examples/enable-gcp-services-simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In this example, we will see how to generate [project services](https://cloud.go
Get the example package by running the following commands:

```shell
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/enable-gcp-services-simple
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/enable-gcp-services-simple@enable-gcp-services/v0.1
```

### Function invocation
Expand All @@ -23,8 +23,8 @@ $ kpt fn render enable-gcp-services-simple
### Expected result

```shell
[RUNNING] "gcr.io/kpt-fn/enable-gcp-services:unstable"
[PASS] "gcr.io/kpt-fn/enable-gcp-services:unstable"
[RUNNING] "gcr.io/kpt-fn/enable-gcp-services:v0.1"
[PASS] "gcr.io/kpt-fn/enable-gcp-services:v0.1"
Results:
[INFO] generated service in object "serviceusage.cnrm.cloud.google.com/v1beta1/Service/proj1-service-compute"
[INFO] generated service in object "serviceusage.cnrm.cloud.google.com/v1beta1/Service/proj1-service-redis"
Expand Down
4 changes: 2 additions & 2 deletions functions/go/enable-gcp-services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ the services necessary in a single resource and have tighter control over which
`enable-gcp-services` function can be used both declaratively and imperatively.

```shell
$ kpt fn eval --image gcr.io/kpt-fn/enable-gcp-services:unstable
$ kpt fn eval --image gcr.io/kpt-fn/enable-gcp-services:v0.1
```

The `enable-gcp-services` function does the following:
Expand Down Expand Up @@ -84,7 +84,7 @@ spec:
Invoke the function:

```shell
$ kpt fn eval --image gcr.io/kpt-fn/enable-gcp-services:unstable
$ kpt fn eval --image gcr.io/kpt-fn/enable-gcp-services:v0.1
```

Generated resources looks like the following:
Expand Down
6 changes: 3 additions & 3 deletions functions/go/enable-gcp-services/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ tags:
- generator
- GCP
- mutator
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/functions/go/enable-gcp-services
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/enable-gcp-services/v0.1/functions/go/enable-gcp-services
examplePackageURLs:
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/enable-gcp-services-simple
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/enable-gcp-services-advanced
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/enable-gcp-services/v0.1/examples/enable-gcp-services-simple
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/enable-gcp-services/v0.1/examples/enable-gcp-services-advanced
emails:
- [email protected]
license: Apache-2.0

0 comments on commit 1b6d4ae

Please sign in to comment.