@@ -51,9 +51,9 @@ PKG: pipeline-validate
51
51
### Configure functions
52
52
53
53
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.
55
55
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
57
57
you to use gatekeeper for checks on the configuration.
58
58
59
59
``` yaml
@@ -68,7 +68,7 @@ pipeline:
68
68
labels :
69
69
color : blue
70
70
validators :
71
- - image : gcr.io/kpt-functions/gatekeeper-validate
71
+ - image : gcr.io/kpt-fn/enforce-gatekeeper:unstable
72
72
` ` `
73
73
74
74
### Render the declared values
@@ -79,7 +79,7 @@ Render the changes in the rendering pipeline by using `kpt fn render` command:
79
79
$ kpt fn render pipeline-validate/
80
80
81
81
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
83
83
package "pipeline-validate": rendered successfully
84
84
` ` `
85
85
@@ -90,7 +90,7 @@ you should see an error:
90
90
$ kpt fn render pipeline-validate/
91
91
92
92
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
94
94
fn.render: pkg pipeline-validate:
95
95
pkg.render:
96
96
pipeline.run: Error: Found 1 violations:
0 commit comments