Skip to content

Commit 4ded65b

Browse files
author
Mengqi Yu
committed
update for gatekeeper release branch
1 parent b72447c commit 4ded65b

File tree

13 files changed

+22
-22
lines changed

13 files changed

+22
-22
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
exitCode: 1
22
testType: eval
3-
image: gcr.io/kpt-fn/gatekeeper:unstable
3+
image: gcr.io/kpt-fn/gatekeeper:v0.1

examples/gatekeeper/imperative/.expected/results.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: fnresults
55
exitCode: 1
66
items:
7-
- image: gcr.io/kpt-fn/gatekeeper:unstable
7+
- image: gcr.io/kpt-fn/gatekeeper:v0.1
88
stderr: |-
99
[error] v1/ConfigMap/default/super-secret : The following banned keys are being used in the ConfigMap: {"private_key"}
1010
violatedConstraint: no-secrets-in-configmap

examples/gatekeeper/imperative/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ We have a `ConfigMap` in `config-map.yaml` that violates the policy.
1818
Get the package:
1919

2020
```shell
21-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/gatekeeper/imperative
21+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/gatekeeper/imperative@gatekeeper/v0.1
2222
```
2323

2424
Run the function with `--results-dir` flag:
2525

2626
```shell
27-
$ kpt fn eval --image=gcr.io/kpt-fn/gatekeeper:unstable --results-dir=results
27+
$ kpt fn eval --image=gcr.io/kpt-fn/gatekeeper:v0.1 --results-dir=results
2828
```
2929

3030
### Expected result
@@ -38,7 +38,7 @@ metadata:
3838
name: fnresults
3939
exitCode: 1
4040
items:
41-
- image: gcr.io/kpt-fn/gatekeeper:unstable
41+
- image: gcr.io/kpt-fn/gatekeeper:v0.1
4242
stderr: |-
4343
The following banned keys are being used in the ConfigMap: {"private_key"}
4444
violatedConstraint: no-secrets-in-configmap

examples/gatekeeper/invalid-configmap/.expected/results.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: fnresults
55
exitCode: 1
66
items:
7-
- image: gcr.io/kpt-fn/gatekeeper:unstable
7+
- image: gcr.io/kpt-fn/gatekeeper:v0.1
88
stderr: |-
99
[error] v1/ConfigMap/default/super-secret : The following banned keys are being used in the ConfigMap: {"private_key"}
1010
violatedConstraint: no-secrets-in-configmap

examples/gatekeeper/invalid-configmap/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: example
55
pipeline:
66
validators:
7-
- image: gcr.io/kpt-fn/gatekeeper:unstable
7+
- image: gcr.io/kpt-fn/gatekeeper:v0.1

examples/gatekeeper/invalid-configmap/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ metadata:
1717
name: example
1818
pipeline:
1919
validators:
20-
- image: gcr.io/kpt-fn/gatekeeper:unstable
20+
- image: gcr.io/kpt-fn/gatekeeper:v0.1
2121
```
2222
2323
### Function invocation
2424
2525
Get the package:
2626
2727
```shell
28-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/gatekeeper/invalid-configmap
28+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/gatekeeper/invalid-configmap@gatekeeper/v0.1
2929
```
3030

3131
Run the function:
@@ -45,7 +45,7 @@ metadata:
4545
name: fnresults
4646
exitCode: 1
4747
items:
48-
- image: gcr.io/kpt-fn/gatekeeper:unstable
48+
- image: gcr.io/kpt-fn/gatekeeper:v0.1
4949
stderr: |-
5050
The following banned keys are being used in the ConfigMap: {"private_key"}
5151
violatedConstraint: no-secrets-in-configmap

examples/gatekeeper/warning-only/.expected/results.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: fnresults
55
exitCode: 0
66
items:
7-
- image: gcr.io/kpt-fn/gatekeeper:unstable
7+
- image: gcr.io/kpt-fn/gatekeeper:v0.1
88
exitCode: 0
99
results:
1010
- message: |-

examples/gatekeeper/warning-only/Kptfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: example
55
pipeline:
66
validators:
7-
- image: gcr.io/kpt-fn/gatekeeper:unstable
7+
- image: gcr.io/kpt-fn/gatekeeper:v0.1

examples/gatekeeper/warning-only/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ metadata:
1515
name: example
1616
pipeline:
1717
validators:
18-
- image: gcr.io/kpt-fn/gatekeeper:unstable
18+
- image: gcr.io/kpt-fn/gatekeeper:v0.1
1919
```
2020
2121
In the constraint, we use `enforcementAction: warn` instead of
@@ -36,7 +36,7 @@ spec:
3636
Get the package:
3737

3838
```shell
39-
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/gatekeeper/warning-only
39+
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/gatekeeper/warning-only@gatekeeper/v0.1
4040
```
4141

4242
Run the function:
@@ -56,7 +56,7 @@ metadata:
5656
name: fnresults
5757
exitCode: 0
5858
items:
59-
- image: gcr.io/kpt-fn/gatekeeper:unstable
59+
- image: gcr.io/kpt-fn/gatekeeper:v0.1
6060
exitCode: 0
6161
results:
6262
- message: |-

functions/go/gatekeeper/metadata.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ image: gcr.io/kpt-fn/gatekeeper
22
description: Validate the KRM resources using Gatekeeper policies.
33
tags:
44
- validator
5-
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/functions/go/gatekeeper
5+
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/gatekeeper/v0.1/functions/go/gatekeeper
66
examplePackageURLs:
7-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/gatekeeper/invalid-configmap
8-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/gatekeeper/warning-only
9-
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/gatekeeper/imperative
7+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/gatekeeper/v0.1/examples/gatekeeper/invalid-configmap
8+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/gatekeeper/v0.1/examples/gatekeeper/warning-only
9+
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/gatekeeper/v0.1/examples/gatekeeper/imperative
1010
emails:
1111
- kpt-team@google.com
1212
license: Apache-2.0

0 commit comments

Comments
 (0)