Skip to content

Commit edd0a1b

Browse files
author
Mengqi Yu
authored
use the right gatekeeper image (#1919)
1 parent 255569b commit edd0a1b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package-examples/pipeline-validate/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ pipeline:
1313
labels:
1414
color: blue
1515
validators:
16-
- image: gcr.io/kpt-functions/gatekeeper-validate
16+
- image: gcr.io/kpt-fn/enforce-gatekeeper:unstable

package-examples/pipeline-validate/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ PKG: pipeline-validate
5151
### Configure functions
5252

5353
The package contains a function pipeline in the `Kptfile` which has
54-
one `set-label` and `gatekeeper-validate` functions.
54+
one `set-label` and `enforce-gatekeeper` functions.
5555
The `set-label` function allows you to set one or more labels to every
56-
resource that supports labeles. The `gatekeeper-validate` function allows
56+
resource that supports labeles. The `enforce-gatekeeper` function allows
5757
you to use gatekeeper for checks on the configuration.
5858

5959
```yaml
@@ -68,7 +68,7 @@ pipeline:
6868
labels:
6969
color: blue
7070
validators:
71-
- image: gcr.io/kpt-functions/gatekeeper-validate
71+
- image: gcr.io/kpt-fn/enforce-gatekeeper:unstable
7272
```
7373
7474
### Render the declared values
@@ -79,7 +79,7 @@ Render the changes in the rendering pipeline by using `kpt fn render` command:
7979
$ kpt fn render pipeline-validate/
8080
8181
package "pipeline-validate": running function "gcr.io/kpt-fn/set-label:unstable": SUCCESS
82-
package "pipeline-validate": running function "gcr.io/kpt-functions/gatekeeper-validate": SUCCESS
82+
package "pipeline-validate": running function "gcr.io/kpt-fn/enforce-gatekeeper:unstable": SUCCESS
8383
package "pipeline-validate": rendered successfully
8484
```
8585

@@ -90,7 +90,7 @@ you should see an error:
9090
$ kpt fn render pipeline-validate/
9191
9292
package "pipeline-validate": running function "gcr.io/kpt-fn/set-label:unstable": SUCCESS
93-
package "pipeline-validate": running function "gcr.io/kpt-functions/gatekeeper-validate": FAILED
93+
package "pipeline-validate": running function "gcr.io/kpt-fn/enforce-gatekeeper:unstable": FAILED
9494
fn.render: pkg pipeline-validate:
9595
pkg.render:
9696
pipeline.run: Error: Found 1 violations:

0 commit comments

Comments
 (0)