Skip to content

Commit

Permalink
use the right gatekeeper image (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu committed May 6, 2021
1 parent 255569b commit edd0a1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-examples/pipeline-validate/Kptfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ pipeline:
labels:
color: blue
validators:
- image: gcr.io/kpt-functions/gatekeeper-validate
- image: gcr.io/kpt-fn/enforce-gatekeeper:unstable
10 changes: 5 additions & 5 deletions package-examples/pipeline-validate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ PKG: pipeline-validate
### Configure functions

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

```yaml
Expand All @@ -68,7 +68,7 @@ pipeline:
labels:
color: blue
validators:
- image: gcr.io/kpt-functions/gatekeeper-validate
- image: gcr.io/kpt-fn/enforce-gatekeeper:unstable
```

### Render the declared values
Expand All @@ -79,7 +79,7 @@ Render the changes in the rendering pipeline by using `kpt fn render` command:
$ kpt fn render pipeline-validate/

package "pipeline-validate": running function "gcr.io/kpt-fn/set-label:unstable": SUCCESS
package "pipeline-validate": running function "gcr.io/kpt-functions/gatekeeper-validate": SUCCESS
package "pipeline-validate": running function "gcr.io/kpt-fn/enforce-gatekeeper:unstable": SUCCESS
package "pipeline-validate": rendered successfully
```

Expand All @@ -90,7 +90,7 @@ you should see an error:
$ kpt fn render pipeline-validate/

package "pipeline-validate": running function "gcr.io/kpt-fn/set-label:unstable": SUCCESS
package "pipeline-validate": running function "gcr.io/kpt-functions/gatekeeper-validate": FAILED
package "pipeline-validate": running function "gcr.io/kpt-fn/enforce-gatekeeper:unstable": FAILED
fn.render: pkg pipeline-validate:
pkg.render:
pipeline.run: Error: Found 1 violations:
Expand Down

0 comments on commit edd0a1b

Please sign in to comment.